| java.lang.Object org.jpox.metadata.MetaData org.jpox.metadata.AbstractElementMetaData
All known Subclasses: org.jpox.metadata.ValueMetaData, org.jpox.metadata.ElementMetaData, org.jpox.metadata.KeyMetaData,
AbstractElementMetaData | abstract public class AbstractElementMetaData extends MetaData implements ColumnMetaDataContainer(Code) | | This element specifies the mapping for the element component of arrays and
collections.
If only one column is mapped, and no additional information is needed for the
column, then the column attribute can be used. Otherwise, the column
element(s) are used.
The serialized attribute specifies that the key values are to be serialized
into the named column.
The foreign-key attribute specifies the name of a foreign key to be
generated.
since: 1.1 version: $Revision: 1.24 $ |
columnName | protected String columnName(Code) | | column name value.
|
columns | final protected List columns(Code) | | Columns ColumnMetaData
|
mappedBy | protected String mappedBy(Code) | | Field that this is mapped to.
|
uniqueConstraint | final protected boolean uniqueConstraint(Code) | | Whether to add a unique constraint
|
AbstractElementMetaData | public AbstractElementMetaData(MetaData parent, AbstractElementMetaData aemd)(Code) | | Constructor to create a copy of the passed metadata object applying the passed parent.
Parameters: parent - The parent Parameters: aemd - The metadata to copy |
AbstractElementMetaData | public AbstractElementMetaData(MetaData parent, String columnName, String deleteAction, String updateAction, String indexed, String unique, String mappedBy)(Code) | | Constructor.
Parameters: parent - Parent element Parameters: columnName - Name of column Parameters: deleteAction - attribute delete-action value Parameters: updateAction - attribute update-action value Parameters: indexed - The indexing value Parameters: unique - Whether to add a unique constraint Parameters: mappedBy - Mapped-by field for this element/key/value |
addColumn | public void addColumn(ColumnMetaData colmd)(Code) | | Add a new ColumnMetaData element
Parameters: colmd - The Column MetaData |
getColumnMetaData | final public ColumnMetaData[] getColumnMetaData()(Code) | | Accessor for columnMetaData
Returns the columnMetaData. |
getColumnName | final public String getColumnName()(Code) | | Accessor for column name.
Returns the column name. |
getEmbeddedMetaData | final public EmbeddedMetaData getEmbeddedMetaData()(Code) | | Accessor for embeddedMetaData
Returns the embeddedMetaData. |
getForeignKeyMetaData | final public ForeignKeyMetaData getForeignKeyMetaData()(Code) | | Accessor for foreignKeyMetaData
Returns the foreignKeyMetaData. |
getIndexMetaData | final public IndexMetaData getIndexMetaData()(Code) | | Accessor for indexMetaData
Returns the indexMetaData. |
getMappedBy | public String getMappedBy()(Code) | | Accessor for the field in the value that stores the key
Field in the value that stores the key |
getUniqueMetaData | final public UniqueMetaData getUniqueMetaData()(Code) | | Accessor for uniqueMetaData
Returns the uniqueMetaData. |
initialise | public void initialise()(Code) | | Method to initialise the object, creating any convenience arrays needed.
Initialises all sub-objects.
|
populate | public void populate(ClassLoaderResolver clr, ClassLoader primary)(Code) | | Populate the metadata
Parameters: clr - the ClassLoaderResolver Parameters: primary - the primary ClassLoader to use (or null) |
setEmbeddedMetaData | final public void setEmbeddedMetaData(EmbeddedMetaData embeddedMetaData)(Code) | | Mutator for the Embedded MetaData
Parameters: embeddedMetaData - The embeddedMetaData to set. |
setForeignKeyMetaData | final public void setForeignKeyMetaData(ForeignKeyMetaData foreignKeyMetaData)(Code) | | Mutator for the Foreign Key MetaData
Parameters: foreignKeyMetaData - The foreignKeyMetaData to set. |
setIndexMetaData | final public void setIndexMetaData(IndexMetaData indexMetaData)(Code) | | Mutator for the Index MetaData
Parameters: indexMetaData - The indexMetaData to set. |
setUniqueMetaData | final public void setUniqueMetaData(UniqueMetaData uniqueMetaData)(Code) | | Mutator for the Unique MetaData
Parameters: uniqueMetaData - The uniqueMetaData to set. |
|
|