|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jpox.store.rdbms.table.AbstractTable
org.jpox.store.rdbms.table.TableImpl
org.jpox.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 AbstractPropertyMetaData |
fmd
FieldMetaData for the field in the owner class. |
protected JavaTypeMapping |
ownerMapping
Mapping of an owner (OID) column back to the owner table PK |
protected java.lang.String |
ownerType
Object type of the owner. |
| Fields inherited from class org.jpox.store.rdbms.table.AbstractTable |
|---|
columns, columnsByName, dba, ddlDumpWriter, identifier, LOCALISER, state, storeMgr |
| Fields inherited from interface org.jpox.store.rdbms.table.Table |
|---|
TABLE_STATE_INITIALIZED, TABLE_STATE_INITIALIZED_MODIFIED, TABLE_STATE_NEW, TABLE_STATE_PK_INITIALIZED, TABLE_STATE_VALIDATED, TABLE_TYPE_MISSING, TABLE_TYPE_TABLE, TABLE_TYPE_UNKNOWN, TABLE_TYPE_VIEW |
| Constructor Summary | |
|---|---|
protected |
JoinTable(DatastoreIdentifier tableName,
AbstractPropertyMetaData fmd,
RDBMSManager storeMgr)
Constructor. |
| Method Summary | |
|---|---|
JavaTypeMapping |
getIDMapping()
Accessor for a mapping for the ID (PersistenceCapable) for this table. |
AbstractPropertyMetaData |
getOwnerFieldMetaData()
Accessor for the MetaData for the owner field for this container. |
JavaTypeMapping |
getOwnerMapping()
Accessor for the "owner" mapping end of the relationship. |
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 java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.jpox.store.DatastoreContainerObject |
|---|
addDatastoreField, getDiscriminatorMapping, getDiscriminatorMetaData, getFieldMapping, getVersionMapping, getVersionMetaData, hasDatastoreField |
| Methods inherited from interface org.jpox.store.DatastoreObject |
|---|
getIdentifier, getStoreManager |
| Methods inherited from interface org.jpox.store.rdbms.table.Table |
|---|
initialize |
| Field Detail |
|---|
protected final AbstractPropertyMetaData fmd
protected JavaTypeMapping ownerMapping
protected final java.lang.String ownerType
| Constructor Detail |
|---|
protected JoinTable(DatastoreIdentifier tableName,
AbstractPropertyMetaData fmd,
RDBMSManager storeMgr)
tableName - The Table SQL identifierfmd - Field meta data for the owner fieldstoreMgr - Manager for the datastore.| Method Detail |
|---|
public PrimaryKey getPrimaryKey()
getPrimaryKey in class TableImplprotected boolean requiresPrimaryKey()
public JavaTypeMapping getOwnerMapping()
public AbstractPropertyMetaData getOwnerFieldMetaData()
public JavaTypeMapping getIDMapping()
getIDMapping in interface DatastoreContainerObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||