|
||||||||||
| 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
public abstract class JoinTable
Abstract class representing a field that maps to a table in the datastore. This will be something like an SCO, such as Set, Map, List where a link table is used. It could potentially be used where the user wants to map some field into its own SCO table.
| Field Summary | |
|---|---|
protected org.datanucleus.metadata.AbstractMemberMetaData |
mmd
MetaData for the field/property in the owner class. |
protected org.datanucleus.store.mapped.mapping.JavaTypeMapping |
ownerMapping
Mapping of owner column(s) back to the owner table PK. |
protected String |
ownerType
Object type of the owner. |
| 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 | |
|---|---|
protected |
JoinTable(org.datanucleus.store.mapped.DatastoreIdentifier tableName,
org.datanucleus.metadata.AbstractMemberMetaData mmd,
RDBMSStoreManager storeMgr)
Constructor. |
| Method Summary | |
|---|---|
protected void |
debugMapping(org.datanucleus.store.mapped.mapping.JavaTypeMapping mapping)
Convenience logging method to output the mapping information for an element, key, value field |
org.datanucleus.store.mapped.mapping.JavaTypeMapping |
getIdMapping()
Accessor for a mapping for the ID (PersistenceCapable) for this table. |
org.datanucleus.store.mapped.mapping.JavaTypeMapping |
getOwnerMapping()
Accessor for the "owner" mapping end of the relationship. |
org.datanucleus.metadata.AbstractMemberMetaData |
getOwnerMemberMetaData()
Accessor for the MetaData for the owner field/property for this container. |
PrimaryKey |
getPrimaryKey()
Accessor for the primary key for this table. |
protected boolean |
requiresPrimaryKey()
Convenience method for whether a PK is required for the join table. |
| Methods inherited from class org.datanucleus.store.rdbms.table.TableImpl |
|---|
createConstraints, dropConstraints, getExpectedCandidateKeys, getExpectedForeignKeys, getExpectedIndices, 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, getMemberMapping, getMultitenancyMapping, getStoreManager, getVersionMapping, getVersionMetaData, hasDatastoreField |
| Methods inherited from interface org.datanucleus.store.rdbms.table.Table |
|---|
initialize |
| Field Detail |
|---|
protected final org.datanucleus.metadata.AbstractMemberMetaData mmd
protected org.datanucleus.store.mapped.mapping.JavaTypeMapping ownerMapping
protected final String ownerType
| Constructor Detail |
|---|
protected JoinTable(org.datanucleus.store.mapped.DatastoreIdentifier tableName,
org.datanucleus.metadata.AbstractMemberMetaData mmd,
RDBMSStoreManager storeMgr)
tableName - The Table SQL identifiermmd - Field meta data for the owner field/propertystoreMgr - Manager for the datastore.| Method Detail |
|---|
public PrimaryKey getPrimaryKey()
getPrimaryKey in class TableImplprotected boolean requiresPrimaryKey()
public org.datanucleus.store.mapped.mapping.JavaTypeMapping getOwnerMapping()
public org.datanucleus.metadata.AbstractMemberMetaData getOwnerMemberMetaData()
public org.datanucleus.store.mapped.mapping.JavaTypeMapping getIdMapping()
getIdMapping in interface org.datanucleus.store.mapped.DatastoreContainerObjectprotected void debugMapping(org.datanucleus.store.mapped.mapping.JavaTypeMapping mapping)
mapping - The mapping
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||