|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.castor.core.nature.BaseNature
org.exolab.castor.builder.info.nature.JDOClassInfoNature
public final class JDOClassInfoNature
A JDO specific view of a ClassInfo
. Implementation on property based
ClassInfo
access.
TODO Add key generator support.
Constructor Summary | |
---|---|
JDOClassInfoNature(ClassInfo classInfo)
|
Method Summary | |
---|---|
void |
addPrimaryKey(java.lang.String column)
Adds a column to the primary key. |
AccessMode |
getAccessMode()
Returns the AccessMode . |
boolean |
getDetachable()
Indicates whether the entity in question is 'detachable'. |
java.util.List<JDOFieldInfoNature> |
getFields()
Returns a List of JDOFieldInfoNature s of all FieldInfo s
if the field has a a JDOFieldInfoNature or an empty List if no
field has the Nature. |
java.lang.String |
getId()
Returns the id of the Nature. |
java.util.List<java.lang.String> |
getPrimaryKeys()
Returns a List of s holding the columns of the primary key. |
java.lang.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(java.lang.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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JDOClassInfoNature(ClassInfo classInfo)
classInfo
- the classinfo in focus.Method Detail |
---|
public java.lang.String getId()
org.exolab.castor.builder.info.nature.Nature#getId()
public void addPrimaryKey(java.lang.String column)
column
- column namepublic java.util.List<java.lang.String> getPrimaryKeys()
addPrimaryKey(String primaryKey)
the order is not
guaranteed.
public java.lang.String getTableName()
public void setTableName(java.lang.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 java.util.List<JDOFieldInfoNature> getFields()
JDOFieldInfoNature
s of all FieldInfo
s
if the field has a a JDOFieldInfoNature
or an empty List if no
field has the Nature. Included are attribute, text and element fields.
JDOFieldInfoNature
s.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |