public final class JDOClassInfoNature extends BaseNature
ClassInfo. Implementation on property based ClassInfo
access.
TODO Add key generator support.| Constructor and Description |
|---|
JDOClassInfoNature(ClassInfo classInfo) |
| Modifier and Type | Method and Description |
|---|---|
void |
addPrimaryKey(String column)
Adds a column to the primary key.
|
AccessMode |
getAccessMode()
Returns the
AccessMode. |
boolean |
getDetachable()
Indicates whether the entity in question is 'detachable'.
|
List<JDOFieldInfoNature> |
getFields()
Returns a List of
JDOFieldInfoNatures of all FieldInfos if the field has a a
JDOFieldInfoNature or an empty List if no field has the Nature. |
String |
getId()
Returns the id of the Nature.
|
List<String> |
getPrimaryKeys()
Returns a List of s holding the columns of the primary key.
|
String |
getTableName()
Returns the table name.
|
void |
setAccessMode(AccessMode accessMode)
Sets the
AccessMode 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.
|
getBooleanPropertyDefaultFalse, getHolder, getProperty, getPropertyAsList, getPropertyAsMap, setPropertypublic JDOClassInfoNature(ClassInfo classInfo)
classInfo - the classinfo in focus.public String getId()
org.exolab.castor.builder.info.nature.Nature#getId()public void addPrimaryKey(String column)
column - column namepublic List<String> getPrimaryKeys()
addPrimaryKey(String primaryKey) the order is not guaranteed.public String getTableName()
public void setTableName(String tableName)
tableName - of the SQL table.public void setAccessMode(AccessMode accessMode)
AccessMode to the given AccessMode.accessMode - access modepublic AccessMode getAccessMode()
AccessMode.public void setDetachable(boolean detachable)
detachable - True if entity should be detachablepublic boolean getDetachable()
public List<JDOFieldInfoNature> getFields()
JDOFieldInfoNatures of all FieldInfos if the field has a a
JDOFieldInfoNature or an empty List if no field has the Nature. Included are attribute,
text and element fields.JDOFieldInfoNatures.Copyright © 2016. All rights reserved.