public class CollectionMetaData extends ContainerMetaData
Modifier and Type | Field and Description |
---|---|
protected org.datanucleus.metadata.ContainerComponent |
element
Representation of the element of the collection.
|
protected boolean |
singleElement
Whether this collection handles more than one element.
|
EXTENSION_CLASS_MULTITENANCY_COLUMN_LENGTH, EXTENSION_CLASS_MULTITENANCY_COLUMN_NAME, EXTENSION_CLASS_MULTITENANCY_DISABLE, EXTENSION_CLASS_MULTITENANCY_JDBC_TYPE, EXTENSION_CLASS_READ_ONLY, EXTENSION_CLASS_VERSION_FIELD_NAME, EXTENSION_CLASS_VIEW_DEFINITION, EXTENSION_CLASS_VIEW_IMPORTS, EXTENSION_MEMBER_CACHEABLE, EXTENSION_MEMBER_CALENDAR_ONE_COLUMN, EXTENSION_MEMBER_CASCADE_PERSIST, EXTENSION_MEMBER_CASCADE_REFRESH, EXTENSION_MEMBER_CASCADE_UPDATE, EXTENSION_MEMBER_COMPARATOR_NAME, EXTENSION_MEMBER_CONTAINER_ALLOW_NULLS, EXTENSION_MEMBER_ENUM_GETTER_BY_VALUE, EXTENSION_MEMBER_ENUM_VALUE_GETTER, EXTENSION_MEMBER_FETCH_FK_ONLY, EXTENSION_MEMBER_IMPLEMENTATION_CLASSES, EXTENSION_MEMBER_INSERTABLE, 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_UPDATEABLE, extensions, METADATA_CREATED_STATE, METADATA_INITIALISED_STATE, METADATA_POPULATED_STATE, METADATA_USED_STATE, metaDataState, parent, VENDOR_NAME
Constructor and Description |
---|
CollectionMetaData()
Default constructor.
|
CollectionMetaData(CollectionMetaData collmd)
Constructor to create a copy of the passed metadata.
|
Modifier and Type | Method and Description |
---|---|
boolean |
elementIsPersistent() |
AbstractClassMetaData |
getElementClassMetaData(ClassLoaderResolver clr)
Convenience accessor for the Element ClassMetaData.
|
String |
getElementType()
Accessor for the element-type tag value.
|
String[] |
getElementTypes() |
boolean |
isDependentElement()
Accessor for The dependent-element attribute indicates that the
collection's element contains a reference that is to be deleted if the
referring instance is deleted.
|
boolean |
isEmbeddedElement()
Accessor for the embedded-element tag value
|
boolean |
isSerializedElement()
Accessor for the serialized-element tag value
|
void |
populate(ClassLoaderResolver clr,
ClassLoader primary)
Method to populate any defaults, and check the validity of the MetaData.
|
CollectionMetaData |
setDependentElement(boolean dependent) |
CollectionMetaData |
setElementType(String type) |
CollectionMetaData |
setEmbeddedElement(boolean embedded) |
CollectionMetaData |
setSerializedElement(boolean serialized) |
CollectionMetaData |
setSingleElement(boolean singleElement) |
String |
toString() |
allowNulls, getFieldName, getMemberMetaData, populate
addExtension, addExtensions, getExtensions, getMetaDataManager, getNoOfExtensions, getParent, getValueForExtension, getValuesForExtension, hasExtension, initialise, isInitialised, isPopulated, isUsed, removeExtension, setExtensions, setParent
protected org.datanucleus.metadata.ContainerComponent element
protected boolean singleElement
public CollectionMetaData(CollectionMetaData collmd)
collmd
- The metadata to copypublic CollectionMetaData()
public void populate(ClassLoaderResolver clr, ClassLoader primary)
clr
- ClassLoaderResolver to use for any loading operationsprimary
- the primary ClassLoader to use (or null)public String getElementType()
public String[] getElementTypes()
public boolean elementIsPersistent()
public AbstractClassMetaData getElementClassMetaData(ClassLoaderResolver clr)
clr
- ClassLoader resolver (in case we need to initialise it)public boolean isEmbeddedElement()
public boolean isDependentElement()
public boolean isSerializedElement()
public CollectionMetaData setElementType(String type)
public CollectionMetaData setEmbeddedElement(boolean embedded)
public CollectionMetaData setSerializedElement(boolean serialized)
public CollectionMetaData setDependentElement(boolean dependent)
public CollectionMetaData setSingleElement(boolean singleElement)
Copyright © 2018. All rights reserved.