|
||||||||||
| 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.PersistableJoinTable
public class PersistableJoinTable
Representation of a join table for the case where we have an N-1 unidirectional relation stored in a join table. It's a minority interest situation, but worth inclusion. The "owner" in this case is the side with the relation (the "N" side). The "related" is the other side.
| Field Summary | |
|---|---|
protected org.datanucleus.store.mapped.mapping.JavaTypeMapping |
relatedMapping
Mapping from the join table to the "related". |
| 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 | |
|---|---|
PersistableJoinTable(org.datanucleus.store.mapped.DatastoreIdentifier tableName,
org.datanucleus.metadata.AbstractMemberMetaData mmd,
RDBMSStoreManager storeMgr)
Constructor. |
|
| Method Summary | |
|---|---|
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. |
org.datanucleus.store.mapped.mapping.JavaTypeMapping |
getMemberMapping(org.datanucleus.metadata.AbstractMemberMetaData mmd)
|
org.datanucleus.store.mapped.mapping.JavaTypeMapping |
getRelatedMapping()
Accessor for the mapping of the "related" in the join table. |
void |
initialize(org.datanucleus.ClassLoaderResolver clr)
Method to initialise the table. |
| Methods inherited from class org.datanucleus.store.rdbms.table.JoinTable |
|---|
debugMapping, getIdMapping, getOwnerMapping, getOwnerMemberMetaData, getPrimaryKey, requiresPrimaryKey |
| 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.DatastoreContainerObject |
|---|
addDatastoreField, getDatastoreField, getDatastoreFields, getDiscriminatorMapping, getDiscriminatorMetaData, getIdentifier, getMultitenancyMapping, getStoreManager, getVersionMapping, getVersionMetaData, hasDatastoreField |
| Field Detail |
|---|
protected org.datanucleus.store.mapped.mapping.JavaTypeMapping relatedMapping
| Constructor Detail |
|---|
public PersistableJoinTable(org.datanucleus.store.mapped.DatastoreIdentifier tableName,
org.datanucleus.metadata.AbstractMemberMetaData mmd,
RDBMSStoreManager storeMgr)
tableName - The Table SQL identifiermmd - Member meta data for the "element" field/propertystoreMgr - Manager for the datastore.| Method Detail |
|---|
public org.datanucleus.store.mapped.mapping.JavaTypeMapping getMemberMapping(org.datanucleus.metadata.AbstractMemberMetaData mmd)
public void initialize(org.datanucleus.ClassLoaderResolver clr)
Table
clr - The ClassLoaderResolverpublic List getExpectedForeignKeys(org.datanucleus.ClassLoaderResolver clr)
getExpectedForeignKeys in class TableImplclr - The ClassLoaderResolver
protected Set getExpectedIndices(org.datanucleus.ClassLoaderResolver clr)
getExpectedIndices in class TableImplclr - The ClassLoaderResolver
protected List getExpectedCandidateKeys()
getExpectedCandidateKeys in class TableImplpublic org.datanucleus.store.mapped.mapping.JavaTypeMapping getRelatedMapping()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||