| java.lang.Object org.jpox.metadata.MetaData org.jpox.metadata.AbstractElementMetaData org.jpox.metadata.ElementMetaData
ElementMetaData | public class ElementMetaData extends AbstractElementMetaData (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.
MetaData Element
The MetaData element represented here is as follows
<!ELEMENT element (extension*,embedded?,column*,foreign-key?,index?,unique?,extension*)>
<!ATTLIST element column CDATA #IMPLIED>
<!ATTLIST element delete-action (restrict|cascade|null|default|none) #IMPLIED>
<!ATTLIST element update-action CDATA #IMPLIED>
<!ATTLIST element indexed (true|false|unique) #IMPLIED>
<!ATTLIST element unique (true|false) #IMPLIED>
<!ATTLIST element mapped-by CDATA #IMPLIED>
since: 1.1 version: $Revision: 1.19 $ |
ElementMetaData | public ElementMetaData(MetaData parent, ElementMetaData emd)(Code) | | Constructor to create a copy of the passed metadata using the provided parent.
Parameters: parent - The parent Parameters: emd - The metadata to copy |
ElementMetaData | public ElementMetaData(MetaData parent, String column, String deleteAction, String updateAction, String indexed, String unique, String mappedBy)(Code) | | Constructor.
Parameters: parent - Parent element Parameters: column - The column tag Parameters: deleteAction - attribute delete-action value Parameters: updateAction - attribute update-action value Parameters: indexed - Whether to index this Parameters: unique - Whether to add a unique constraint Parameters: mappedBy - Mapped by field |
populate | public void populate(ClassLoaderResolver clr, ClassLoader primary)(Code) | | Populate the MetaData.
Parameters: clr - Class loader to use Parameters: primary - the primary ClassLoader to use (or null) |
toString | public String toString(String prefix, String indent)(Code) | | Returns a string representation of the object using a prefix
This can be used as part of a facility to output a MetaData file.
Parameters: prefix - prefix string Parameters: indent - indent string a string representation of the object. |
|
|