Class JDOClassInfoNature
java.lang.Object
org.castor.core.nature.BaseNature
org.exolab.castor.builder.info.nature.JDOClassInfoNature
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addPrimaryKey
(String column) Adds a column to the primary key.Returns theAccessMode
.boolean
Indicates whether the entity in question is 'detachable'.Returns a List ofJDOFieldInfoNature
s of allFieldInfo
s if the field has a aJDOFieldInfoNature
or an empty List if no field has the Nature.getId()
Returns the id of the Nature.Returns a List of s holding the columns of the primary key.Returns the table name.void
setAccessMode
(AccessMode accessMode) Sets theAccessMode
to the given AccessMode.void
setDetachable
(boolean detachable) Sets whether the entity is 'detachable'.void
setTableName
(String tableName) Sets the table name to the given String.Methods inherited from class org.castor.core.nature.BaseNature
getBooleanPropertyDefaultFalse, getHolder, getProperty, getPropertyAsList, getPropertyAsMap, setProperty
-
Constructor Details
-
JDOClassInfoNature
- Parameters:
classInfo
- the classinfo in focus.
-
-
Method Details
-
getId
Returns the id of the Nature. Implementation returns the fully qualified class name.- Returns:
- the id.
- See Also:
-
addPrimaryKey
Adds a column to the primary key. The order of the key columns is not guaranteed.- Parameters:
column
- column name
-
getPrimaryKeys
-
getTableName
-
setTableName
Sets the table name to the given String.- Parameters:
tableName
- of the SQL table.
-
setAccessMode
Sets theAccessMode
to the given AccessMode.- Parameters:
accessMode
- access mode
-
getAccessMode
-
setDetachable
public void setDetachable(boolean detachable) Sets whether the entity is 'detachable'.- Parameters:
detachable
- True if entity should be detachable
-
getDetachable
public boolean getDetachable()Indicates whether the entity in question is 'detachable'.- Returns:
- True if the entity is 'detachable'.
-
getFields
Returns a List ofJDOFieldInfoNature
s of allFieldInfo
s if the field has a aJDOFieldInfoNature
or an empty List if no field has the Nature. Included are attribute, text and element fields.- Returns:
- List of
JDOFieldInfoNature
s.
-