Package org.datanucleus.metadata
Class ElementMetaData
java.lang.Object
org.datanucleus.metadata.MetaData
org.datanucleus.metadata.AbstractElementMetaData
org.datanucleus.metadata.ElementMetaData
- All Implemented Interfaces:
Serializable
,ColumnMetaDataContainer
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 serialised attribute specifies that the key values are to be serialised into the named column.
The foreign-key attribute specifies the name of a foreign key to be generated.
- See Also:
-
Field Summary
FieldsFields inherited from class org.datanucleus.metadata.AbstractElementMetaData
columnName, columns, embeddedMetaData, foreignKeyMetaData, indexed, indexMetaData, mappedBy, table, unique, uniqueMetaData
Fields inherited from class org.datanucleus.metadata.MetaData
EXTENSION_CLASS_CREATETIMESTAMP, EXTENSION_CLASS_CREATETIMESTAMP_COLUMN_NAME, EXTENSION_CLASS_CREATEUSER, EXTENSION_CLASS_CREATEUSER_COLUMN_LENGTH, EXTENSION_CLASS_CREATEUSER_COLUMN_NAME, EXTENSION_CLASS_MULTITENANCY_COLUMN_LENGTH, EXTENSION_CLASS_MULTITENANCY_COLUMN_NAME, EXTENSION_CLASS_MULTITENANCY_JDBC_TYPE, EXTENSION_CLASS_MULTITENANT, EXTENSION_CLASS_READ_ONLY, EXTENSION_CLASS_SOFTDELETE, EXTENSION_CLASS_SOFTDELETE_COLUMN_NAME, EXTENSION_CLASS_UPDATETIMESTAMP, EXTENSION_CLASS_UPDATETIMESTAMP_COLUMN_NAME, EXTENSION_CLASS_UPDATEUSER, EXTENSION_CLASS_UPDATEUSER_COLUMN_LENGTH, EXTENSION_CLASS_UPDATEUSER_COLUMN_NAME, EXTENSION_CLASS_VERSION_FIELD_NAME, EXTENSION_CLASS_VIEW_DEFINITION, EXTENSION_CLASS_VIEW_IMPORTS, EXTENSION_INDEX_COLUMN_ORDERING, EXTENSION_MEMBER_CACHEABLE, EXTENSION_MEMBER_CALENDAR_ONE_COLUMN, EXTENSION_MEMBER_CASCADE_ATTACH, EXTENSION_MEMBER_CASCADE_DETACH, EXTENSION_MEMBER_CASCADE_PERSIST, EXTENSION_MEMBER_CASCADE_REFRESH, EXTENSION_MEMBER_COMPARATOR_NAME, EXTENSION_MEMBER_CONTAINER_ALLOW_NULLS, EXTENSION_MEMBER_CREATE_TIMESTAMP, EXTENSION_MEMBER_CREATE_USER, EXTENSION_MEMBER_ENUM_VALUE_GETTER, EXTENSION_MEMBER_IMPLEMENTATION_CLASSES, EXTENSION_MEMBER_INSERTABLE, EXTENSION_MEMBER_KEY_IMPLEMENTATION_CLASSES, EXTENSION_MEMBER_LIST_ORDERING, EXTENSION_MEMBER_RELATION_DISCRIM_COLUMN, EXTENSION_MEMBER_RELATION_DISCRIM_PK, EXTENSION_MEMBER_RELATION_DISCRIM_VALUE, EXTENSION_MEMBER_STRATEGY_WHEN_NOTNULL, EXTENSION_MEMBER_TYPE_CONVERTER_DISABLED, EXTENSION_MEMBER_TYPE_CONVERTER_NAME, EXTENSION_MEMBER_UPDATE_TIMESTAMP, EXTENSION_MEMBER_UPDATE_USER, EXTENSION_MEMBER_UPDATEABLE, EXTENSION_MEMBER_VALUE_IMPLEMENTATION_CLASSES, EXTENSION_VERSION_NUMBER_INITIAL_VALUE, extensions, metaDataState, parent, VENDOR_NAME
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.Constructor to create a copy of the passed metadata using the provided parent. -
Method Summary
Modifier and TypeMethodDescriptionvoid
populate
(ClassLoaderResolver clr, ClassLoader primary) Populate the MetaData.Methods inherited from class org.datanucleus.metadata.AbstractElementMetaData
addColumn, getColumnMetaData, getColumnName, getDeleteAction, getEmbeddedMetaData, getForeignKeyMetaData, getIndexed, getIndexMetaData, getMappedBy, getTable, getUniqueMetaData, getUpdateAction, initialise, isUnique, newColumnMetaData, newEmbeddedMetaData, newForeignKeyMetaData, newIndexMetaData, newUniqueMetaData, setColumnName, setDeleteAction, setDeleteAction, setEmbeddedMetaData, setForeignKeyMetaData, setIndexed, setIndexMetaData, setMappedBy, setTable, setUnique, setUniqueMetaData, setUpdateAction, setUpdateAction
Methods inherited from class org.datanucleus.metadata.MetaData
addExtension, addExtensions, getExtensions, getMetaDataManager, getNoOfExtensions, getParent, getValueForExtension, getValuesForExtension, hasExtension, isInitialised, isPopulated, isUsed, removeExtension, setExtensions, setInitialised, setParent, setPopulated, setUsed
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
-
Constructor Details
-
ElementMetaData
Constructor to create a copy of the passed metadata using the provided parent.- Parameters:
emd
- The metadata to copy
-
ElementMetaData
public ElementMetaData()Default constructor. Set the fields using setters, before populate().
-
-
Method Details
-
populate
Populate the MetaData.- Overrides:
populate
in classAbstractElementMetaData
- Parameters:
clr
- Class loader to useprimary
- the primary ClassLoader to use (or null)
-