|
||||||||
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.relation.JDOOneToOneNature
public final class JDOOneToOneNature
A JDOOneToOneNature
defines a one-to-one relation between two
FieldInfo
s.
Constructor Summary | |
---|---|
JDOOneToOneNature(FieldInfo field)
Constructor taking a FieldInfo . |
Method Summary | |
---|---|
void |
addForeignKey(java.lang.String column)
Adds a column to the foreign key. |
java.util.List<java.lang.String> |
getForeignKeys()
Returns a List of s holding the columns of the foreign key. |
java.lang.String |
getId()
Returns the Nature Id. |
boolean |
isDirty()
Returns true if field will NOT be checked against the database for modification, otherwise false. |
boolean |
isReadOnly()
Returns true if no update on the column can be performed, false otherwise. |
void |
setDirty(boolean dirty)
If set true, field will NOT be checked against the database for modification, otherwise set false. |
void |
setReadOnly(boolean readOnly)
Sets the column read only. |
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 JDOOneToOneNature(FieldInfo field)
FieldInfo
.
field
- The field.Method Detail |
---|
public java.lang.String getId()
Class
name.Nature.getId()
public boolean isReadOnly()
public void setReadOnly(boolean readOnly)
readOnly
- true if read only.public boolean isDirty()
public void setDirty(boolean dirty)
dirty
- true if field should not be updated.public java.util.List<java.lang.String> getForeignKeys()
addPrimaryKey(String foreignKey)
the order is not
guaranteed.
public void addForeignKey(java.lang.String column)
BaseNature
is using.
column
- The column name.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |