public class JDOOneToManyNature extends BaseNature
JDOOneToManyNature defines typed properties needed in the context a one-to-many
relation between two FieldInfos.| Constructor and Description |
|---|
JDOOneToManyNature(FieldInfo field)
Constructor taking a
FieldInfo. |
| Modifier and Type | Method and Description |
|---|---|
void |
addForeignKey(String column)
Adds a column to the foreign key.
|
List<String> |
getForeignKeys()
Returns a List of s holding the columns of the foreign key.
|
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.
|
getBooleanPropertyDefaultFalse, getHolder, getProperty, getPropertyAsList, getPropertyAsMap, setPropertypublic 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 List<String> getForeignKeys()
addPrimaryKey(String foreignKey) the order is not guaranteed.public void addForeignKey(String column)
BaseNature is using.column - The column name.Copyright © 2016. All rights reserved.