public class MapTable extends JoinTable implements DatastoreMap
The join table consists of the following mappings :-
Modifier and Type | Field and Description |
---|---|
protected Map |
embeddedKeyMappingsMap
Map of field mappings when containing an embedded PC key.
|
protected Map |
embeddedValueMappingsMap
Map of field mappings when containing an embedded PC value.
|
mmd, ownerMapping, ownerType
columns, columnsByName, dba, existsInDatastore, identifier, state, storeMgr, TABLE_STATE_INITIALIZED, TABLE_STATE_INITIALIZED_MODIFIED, TABLE_STATE_NEW, TABLE_STATE_PK_INITIALIZED, TABLE_STATE_VALIDATED
Constructor and Description |
---|
MapTable(DatastoreIdentifier tableName,
org.datanucleus.metadata.AbstractMemberMetaData mmd,
RDBMSStoreManager storeMgr)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
applyUserPrimaryKeySpecification(org.datanucleus.metadata.PrimaryKeyMetaData pkmd)
Convenience method to apply the user specification of <primary-key> columns
|
protected List |
getExpectedCandidateKeys()
Accessor for the candidate keys for this table.
|
List |
getExpectedForeignKeys(org.datanucleus.ClassLoaderResolver clr)
Accessor for the expected foreign keys for this table.
|
protected Set |
getExpectedIndices(org.datanucleus.ClassLoaderResolver clr)
Accessor for the indices for this table.
|
JavaTypeMapping |
getKeyMapping()
Accessor for the "key" mapping end of the relationship.
|
String |
getKeyType()
Accessor for the key type for this Map.
|
JavaTypeMapping |
getMemberMapping(org.datanucleus.metadata.AbstractMemberMetaData mmd)
Accessor the for the mapping for a field stored in this table
|
JavaTypeMapping |
getOrderMapping()
Accessor for order mapping.
|
JavaTypeMapping |
getValueMapping()
Accessor for the "value" mapping end of the relationship.
|
String |
getValueType()
Accessor for the value type for this Map.
|
void |
initialize(org.datanucleus.ClassLoaderResolver clr)
Method to initialise the table definition.
|
boolean |
isEmbeddedKey()
Accessor for whether the key is embedded into this table.
|
boolean |
isEmbeddedKeyPC()
Accessor for whether the key is a persistable(embedded)
|
boolean |
isEmbeddedValue()
Accessor for whether the value is embedded into this table.
|
boolean |
isEmbeddedValuePC()
Accessor for whether the value is a persistable(embedded)
|
boolean |
isSerialisedKey()
Accessor for whether the key is serialised into this table.
|
boolean |
isSerialisedKeyPC()
Accessor for whether the key is a persistable(serialised)
|
boolean |
isSerialisedValue()
Accessor for whether the value is serialised into this table.
|
boolean |
isSerialisedValuePC()
Accessor for whether the value is a persistable(serialised)
|
getIdMapping, getOwnerMapping, getOwnerMemberMetaData, getPrimaryKey, requiresPrimaryKey
createConstraints, dropConstraints, getSQLAddCandidateKeyStatements, getSQLAddFKStatements, getSQLCreateIndexStatements, getSQLCreateStatements, getSQLDropStatements, initializeColumnInfoForPrimaryKeyColumns, initializeColumnInfoFromDatastore, logMapping, postInitialize, preInitialize, validate, validateColumns, validateConstraints, validatePrimaryKey
addColumn, addColumnInternal, allowDDLOutput, assertIsInitialized, assertIsInitializedModified, assertIsPKInitialized, assertIsPKUninitialized, assertIsUninitialized, assertIsValidated, create, drop, equals, executeDdlStatement, executeDdlStatementList, exists, getCatalogName, getClassMetaData, getColumn, getColumnForName, getColumnForPosition, getColumns, getDatastoreIdColumn, getDatastoreIdentifierFullyQualified, getDiscriminatorColumn, getDiscriminatorMapping, getDiscriminatorMetaData, getIdentifier, getMemberColumnMappingForEmbeddedMember, getMemberColumnMappingForMember, getMemberColumnMappings, getMultitenancyColumn, getMultitenancyMapping, getName, getNumberOfColumns, getSchemaName, getStoreManager, getVersionColumn, getVersionMapping, getVersionMetaData, hasColumn, hasColumnName, hashCode, isInitialized, isInitializedModified, isPKInitialized, isValidated, tableExistsInDatastore, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getOwnerMapping
addColumn, create, drop, exists, getColumn, getDiscriminatorMapping, getDiscriminatorMetaData, getIdentifier, getIdMapping, getMultitenancyMapping, getStoreManager, getVersionMapping, getVersionMetaData, hasColumn, isInitialized, isInitializedModified, isValidated, postInitialize, preInitialize, validate
getCatalogName, getClassMetaData, getColumnForName, getColumnForPosition, getColumns, getDatastoreIdColumn, getDiscriminatorColumn, getMemberColumnMappingForEmbeddedMember, getMemberColumnMappingForMember, getMemberColumnMappings, getMultitenancyColumn, getName, getNumberOfColumns, getSchemaName, getVersionColumn
protected Map embeddedKeyMappingsMap
protected Map embeddedValueMappingsMap
public MapTable(DatastoreIdentifier tableName, org.datanucleus.metadata.AbstractMemberMetaData mmd, RDBMSStoreManager storeMgr)
tableName
- Identifier name of the tablemmd
- MetaData for the field/property of the ownerstoreMgr
- The Store Manager managing these tables.public void initialize(org.datanucleus.ClassLoaderResolver clr)
clr
- The ClassLoaderResolverprotected void applyUserPrimaryKeySpecification(org.datanucleus.metadata.PrimaryKeyMetaData pkmd)
pkmd
- MetaData for the primary keypublic boolean isEmbeddedKey()
public boolean isSerialisedKey()
public boolean isSerialisedKeyPC()
public boolean isEmbeddedKeyPC()
public boolean isEmbeddedValue()
public boolean isSerialisedValue()
public boolean isSerialisedValuePC()
public boolean isEmbeddedValuePC()
public JavaTypeMapping getKeyMapping()
getKeyMapping
in interface DatastoreMap
public JavaTypeMapping getValueMapping()
getValueMapping
in interface DatastoreMap
public String getKeyType()
public String getValueType()
public JavaTypeMapping getOrderMapping()
public List getExpectedForeignKeys(org.datanucleus.ClassLoaderResolver clr)
getExpectedForeignKeys
in class TableImpl
clr
- The ClassLoaderResolverprotected Set getExpectedIndices(org.datanucleus.ClassLoaderResolver clr)
getExpectedIndices
in class TableImpl
clr
- The ClassLoaderResolverprotected List getExpectedCandidateKeys()
getExpectedCandidateKeys
in class TableImpl
public JavaTypeMapping getMemberMapping(org.datanucleus.metadata.AbstractMemberMetaData mmd)
mmd
- MetaData for the field whose mapping we wantCopyright © 2015. All rights reserved.