|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.datanucleus.store.rdbms.table.AbstractTable
org.datanucleus.store.rdbms.table.TableImpl
org.datanucleus.store.rdbms.table.JoinTable
org.datanucleus.store.rdbms.table.ElementContainerTable
org.datanucleus.store.rdbms.table.CollectionTable
public class CollectionTable
Representation of a join table for a Collection. A Collection covers a wide range of possibilities in terms of whether it allows duplicates or not, whether it allows nulls or not, whether it supports ordering via indexes, whether it supports ordering via a SELECT criteria, etc. Consequently the join table can vary depending on the required capabilities.
The join table consists of the following mappings :-
| Field Summary |
|---|
| Fields inherited from class org.datanucleus.store.rdbms.table.ElementContainerTable |
|---|
elementMapping, orderMapping, relationDiscriminatorMapping, relationDiscriminatorValue |
| Fields inherited from class org.datanucleus.store.rdbms.table.JoinTable |
|---|
mmd, ownerMapping, ownerType |
| Fields inherited from class org.datanucleus.store.rdbms.table.AbstractTable |
|---|
columns, columnsByName, dba, existsInDatastore, identifier, LOCALISER, state, storeMgr, TABLE_STATE_INITIALIZED, TABLE_STATE_INITIALIZED_MODIFIED, TABLE_STATE_NEW, TABLE_STATE_PK_INITIALIZED, TABLE_STATE_VALIDATED |
| Constructor Summary | |
|---|---|
CollectionTable(org.datanucleus.store.mapped.DatastoreIdentifier tableName,
org.datanucleus.metadata.AbstractMemberMetaData mmd,
RDBMSStoreManager storeMgr)
Constructor. |
|
| Method Summary | |
|---|---|
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 PersistenceCapable(embedded). |
boolean |
isSerialisedElement()
Accessor for whether the element is serialised into this table. |
boolean |
isSerialisedElementPC()
Accessor for whether the element is a PersistenceCapable(serialised) |
protected boolean |
requiresPrimaryKey()
Convenience method for whether a PK is required for the join table. |
| Methods inherited from class org.datanucleus.store.rdbms.table.ElementContainerTable |
|---|
applyUserPrimaryKeySpecification, getElementMapping, getExpectedCandidateKeys, getExpectedForeignKeys, getExpectedIndices, getForeignKeyToElement, getForeignKeyToOwner, getMemberMapping, getOrderMapping, getRelationDiscriminatorMapping, getRelationDiscriminatorValue |
| Methods inherited from class org.datanucleus.store.rdbms.table.JoinTable |
|---|
debugMapping, getIdMapping, getOwnerMapping, getOwnerMemberMetaData, getPrimaryKey |
| Methods inherited from class org.datanucleus.store.rdbms.table.TableImpl |
|---|
createConstraints, dropConstraints, getSQLAddCandidateKeyStatements, getSQLAddFKStatements, getSQLCreateIndexStatements, getSQLCreateStatements, getSQLDropStatements, initializeColumnInfoForPrimaryKeyColumns, initializeColumnInfoFromDatastore, postInitialize, preInitialize, validate, validateColumns, validateConstraints, validatePrimaryKey |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.datanucleus.store.mapped.DatastoreElementContainer |
|---|
getElementMapping, getOwnerMapping |
| Methods inherited from interface org.datanucleus.store.mapped.DatastoreContainerObject |
|---|
addDatastoreField, getDatastoreField, getDatastoreFields, getDiscriminatorMapping, getDiscriminatorMetaData, getIdentifier, getIdMapping, getMemberMapping, getMultitenancyMapping, getStoreManager, getVersionMapping, getVersionMetaData, hasDatastoreField |
| Constructor Detail |
|---|
public CollectionTable(org.datanucleus.store.mapped.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.| Method Detail |
|---|
public void initialize(org.datanucleus.ClassLoaderResolver clr)
initialize in interface Tableinitialize in class ElementContainerTableclr - The ClassLoaderResolverpublic String getElementType()
getElementType in class ElementContainerTablepublic boolean isSerialisedElement()
public boolean isEmbeddedElement()
public boolean isSerialisedElementPC()
public boolean isEmbeddedElementPC()
protected boolean requiresPrimaryKey()
requiresPrimaryKey in class JoinTable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||