public class CollectionTable extends ElementContainerTable implements DatastoreElementContainer
The join table consists of the following mappings :-
elementMapping, orderMapping, relationDiscriminatorMapping, relationDiscriminatorValue
mmd, ownerMapping, ownerType
columns, columnsByIdentifier, 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 |
---|
CollectionTable(DatastoreIdentifier tableName,
org.datanucleus.metadata.AbstractMemberMetaData mmd,
RDBMSStoreManager storeMgr)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
getElementType()
Accessor for the element type stored in this Collection/Set/List.
|
void |
initialize(org.datanucleus.ClassLoaderResolver clr)
Method to initialise the table definition.
|
boolean |
isEmbeddedElement()
Accessor for whether the element is embedded into this table.
|
boolean |
isEmbeddedElementPC()
Accessor for whether the element is a persistable(embedded).
|
boolean |
isSerialisedElement()
Accessor for whether the element is serialised into this table.
|
boolean |
isSerialisedElementPC()
Accessor for whether the element is a persistable(serialised)
|
protected boolean |
requiresPrimaryKey()
Convenience method for whether a PK is required for the join table.
|
applyUserPrimaryKeySpecification, getElementMapping, getExpectedCandidateKeys, getExpectedForeignKeys, getExpectedIndices, getForeignKeyToElement, getForeignKeyToOwner, getMemberMapping, getOrderMapping, getRelationDiscriminatorMapping, getRelationDiscriminatorValue
getIdMapping, getOwnerMapping, getOwnerMemberMetaData, getPrimaryKey
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
getElementMapping, getOwnerMapping
addColumn, create, drop, exists, getColumn, getDiscriminatorMapping, getDiscriminatorMetaData, getIdentifier, getIdMapping, getMemberMapping, 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
public CollectionTable(DatastoreIdentifier tableName, org.datanucleus.metadata.AbstractMemberMetaData mmd, RDBMSStoreManager storeMgr)
tableName
- Identifier name of the tablemmd
- MetaData for the field of the ownerstoreMgr
- The Store Manager managing these tables.public void initialize(org.datanucleus.ClassLoaderResolver clr)
initialize
in class ElementContainerTable
clr
- The ClassLoaderResolverpublic String getElementType()
getElementType
in class ElementContainerTable
public boolean isSerialisedElement()
public boolean isEmbeddedElement()
public boolean isSerialisedElementPC()
public boolean isEmbeddedElementPC()
protected boolean requiresPrimaryKey()
requiresPrimaryKey
in class JoinTable
Copyright © 2017. All rights reserved.