public class ArrayMetaData extends ContainerMetaData
Modifier and Type | Field and Description |
---|---|
protected org.datanucleus.metadata.ContainerComponent |
element
Representation of the element of the array.
|
protected boolean |
mayContainPersistableElements
wether this array may contain persistable elements
|
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_SOFTDELETE, EXTENSION_CLASS_SOFTDELETE_COLUMN_NAME, EXTENSION_CLASS_VERSION_FIELD_NAME, EXTENSION_CLASS_VIEW_DEFINITION, EXTENSION_CLASS_VIEW_IMPORTS, EXTENSION_MEMBER_CACHEABLE, EXTENSION_MEMBER_CALENDAR_ONE_COLUMN, EXTENSION_MEMBER_CASCADE_DETACH, 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_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_UPDATEABLE, EXTENSION_MEMBER_VALUE_IMPLEMENTATION_CLASSES, EXTENSION_VERSION_NUMBER_INITIAL_VALUE, extensions, METADATA_CREATED_STATE, METADATA_INITIALISED_STATE, METADATA_POPULATED_STATE, METADATA_USED_STATE, metaDataState, parent, VENDOR_NAME
Constructor and Description |
---|
ArrayMetaData()
Default constructor.
|
ArrayMetaData(ArrayMetaData arrmd)
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 implementation types (when element is a reference type).
|
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 value
|
boolean |
isSerializedElement()
Accessor for the serialized-element tag value
|
boolean |
mayContainPersistableElements()
Returns whether this array may contain persistable elements (as indicated by the user).
|
void |
populate(ClassLoaderResolver clr,
ClassLoader primary)
Method to populate any defaults, and check the validity of the MetaData.
|
ArrayMetaData |
setDependentElement(boolean dependent) |
ArrayMetaData |
setElementType(String type) |
ArrayMetaData |
setEmbeddedElement(boolean embedded) |
ArrayMetaData |
setSerializedElement(boolean serialized) |
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 mayContainPersistableElements
public ArrayMetaData(ArrayMetaData arrmd)
arrmd
- The metadata to copypublic ArrayMetaData()
public void populate(ClassLoaderResolver clr, ClassLoader primary)
clr
- ClassLoaderResolver to use in loading any classesprimary
- the primary ClassLoader to use (or null)public boolean elementIsPersistent()
public AbstractClassMetaData getElementClassMetaData(ClassLoaderResolver clr)
clr
- ClassLoader resolver (in case we need to initialise it)public boolean mayContainPersistableElements()
public boolean isEmbeddedElement()
public boolean isSerializedElement()
public boolean isDependentElement()
public String getElementType()
public String[] getElementTypes()
public ArrayMetaData setElementType(String type)
public ArrayMetaData setEmbeddedElement(boolean embedded)
public ArrayMetaData setSerializedElement(boolean serialized)
public ArrayMetaData setDependentElement(boolean dependent)
Copyright © 2019. All rights reserved.