public class MapMetaData extends ContainerMetaData
Modifier and Type | Class and Description |
---|---|
static class |
MapMetaData.MapType |
Modifier and Type | Field and Description |
---|---|
protected org.datanucleus.metadata.ContainerComponent |
key
Representation of the key of the map.
|
protected MapMetaData.MapType |
mapType
Type of map.
|
protected org.datanucleus.metadata.ContainerComponent |
value
Representation of the value of the map.
|
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 |
---|
MapMetaData()
Default constructor.
|
MapMetaData(MapMetaData mapmd)
Constructor to create a copy of the passed metadata.
|
Modifier and Type | Method and Description |
---|---|
AbstractClassMetaData |
getKeyClassMetaData(ClassLoaderResolver clr)
Convenience accessor for the Key ClassMetaData.
|
String |
getKeyType()
Accessor for the key-type tag value.
|
String[] |
getKeyTypes() |
MapMetaData.MapType |
getMapType() |
AbstractClassMetaData |
getValueClassMetaData(ClassLoaderResolver clr)
Convenience accessor for the Value ClassMetaData
|
String |
getValueType()
Accessor for the value-type tag value.
|
String[] |
getValueTypes() |
boolean |
isDependentKey()
Accessor for the dependent-key attribute indicates that the map's
key contains references that are to be deleted if the referring instance is deleted.
|
boolean |
isDependentValue()
Accessor for the dependent-value attribute indicates that the
map's value contains references that are to be deleted if the
referring instance is deleted.
|
boolean |
isEmbeddedKey()
Accessor for the embedded-key tag value.
|
boolean |
isEmbeddedValue()
Accessor for the embedded-value tag value.
|
boolean |
isSerializedKey()
Accessor for the serialized-key tag value.
|
boolean |
isSerializedValue()
Accessor for the serialized-value tag value.
|
boolean |
keyIsPersistent() |
void |
populate(ClassLoaderResolver clr,
ClassLoader primary)
Method to populate any defaults, and check the validity of the MetaData.
|
MapMetaData |
setDependentKey(boolean dependent) |
MapMetaData |
setDependentValue(boolean dependent) |
MapMetaData |
setEmbeddedKey(boolean embedded) |
MapMetaData |
setEmbeddedValue(boolean embedded) |
MapMetaData |
setKeyType(String type) |
MapMetaData |
setSerializedKey(boolean serialized) |
MapMetaData |
setSerializedValue(boolean serialized) |
MapMetaData |
setValueType(String type) |
String |
toString() |
boolean |
valueIsPersistent() |
allowNulls, getFieldName, getMemberMetaData, populate
addExtension, addExtensions, getExtensions, getMetaDataManager, getNoOfExtensions, getParent, getValueForExtension, getValuesForExtension, hasExtension, initialise, isInitialised, isPopulated, isUsed, removeExtension, setExtensions, setParent
protected MapMetaData.MapType mapType
protected org.datanucleus.metadata.ContainerComponent key
protected org.datanucleus.metadata.ContainerComponent value
public MapMetaData(MapMetaData mapmd)
mapmd
- The metadata to copypublic MapMetaData()
public void populate(ClassLoaderResolver clr, ClassLoader primary)
clr
- ClassLoaderResolver to use for loading any key/value typesprimary
- the primary ClassLoader to use (or null)public MapMetaData.MapType getMapType()
public AbstractClassMetaData getKeyClassMetaData(ClassLoaderResolver clr)
clr
- ClassLoader resolver (in case we need to initialise it)public boolean keyIsPersistent()
public AbstractClassMetaData getValueClassMetaData(ClassLoaderResolver clr)
clr
- ClassLoader resolver (in case we need to initialise it)public boolean valueIsPersistent()
public boolean isEmbeddedKey()
public boolean isEmbeddedValue()
public boolean isSerializedKey()
public boolean isSerializedValue()
public boolean isDependentKey()
public boolean isDependentValue()
public String getKeyType()
public String[] getKeyTypes()
public MapMetaData setKeyType(String type)
public MapMetaData setEmbeddedKey(boolean embedded)
public MapMetaData setSerializedKey(boolean serialized)
public MapMetaData setDependentKey(boolean dependent)
public String getValueType()
public String[] getValueTypes()
public MapMetaData setValueType(String type)
public MapMetaData setEmbeddedValue(boolean embedded)
public MapMetaData setSerializedValue(boolean serialized)
public MapMetaData setDependentValue(boolean dependent)
Copyright © 2019. All rights reserved.