|
|||||||||||
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
org.jpox.store.rdbms.table.MapTable
Representation of a join table for a Map relationship. A Map can be configured in various ways using JPOX.
Field Summary | |
protected java.util.Map |
embeddedKeyMappingsMap
Map of field mappings when containing an embedded PC key. |
protected java.util.Map |
embeddedValueMappingsMap
Map of field mappings when containing an embedded PC value. |
Fields inherited from class org.jpox.store.rdbms.table.JoinTable |
fmd, ownerMapping, ownerType |
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 | |
MapTable(DatastoreIdentifier tableName,
AbstractPropertyMetaData fmd,
RDBMSManager storeMgr)
Constructor. |
Method Summary | |
protected void |
applyUserPrimaryKeySpecification(PrimaryKeyMetaData pkmd)
Convenience method to apply the user specification of |
JavaTypeMapping |
getAdapterMapping()
Accessor for adapeter mapping. |
protected java.util.List |
getExpectedCandidateKeys()
Accessor for the candidate keys for this table. |
protected java.util.List |
getExpectedForeignKeys(ClassLoaderResolver clr)
Accessor for the expected foreign keys for this table. |
protected java.util.Set |
getExpectedIndices(ClassLoaderResolver clr)
Accessor for the indices for this table. |
JavaTypeMapping |
getFieldMapping(AbstractPropertyMetaData fmd)
Accessor the for the mapping for a field stored in this table |
JavaTypeMapping |
getKeyMapping()
Accessor for the "key" mapping end of the relationship. |
java.lang.String |
getKeyType()
Accessor for the key type for this Map. |
JavaTypeMapping |
getValueMapping()
Accessor for the "value" mapping end of the relationship. |
java.lang.String |
getValueType()
Accessor for the value type for this Map. |
void |
initialize(ClassLoaderResolver clr)
Method to initialise the table definition. |
boolean |
isEmbeddedKey()
Accessor for whether the key is embedded into this table. |
boolean |
isEmbeddedKeyPC()
Accessor for whether the key is a PersistenceCapable(embedded) |
boolean |
isEmbeddedValue()
Accessor for whether the value is embedded into this table. |
boolean |
isEmbeddedValuePC()
Accessor for whether the value is a PersistenceCapable(embedded) |
boolean |
isSerialisedKey()
Accessor for whether the key is serialised into this table. |
boolean |
isSerialisedKeyPC()
Accessor for whether the key is a PersistenceCapable(serialised) |
boolean |
isSerialisedValue()
Accessor for whether the value is serialised into this table. |
boolean |
isSerialisedValuePC()
Accessor for whether the value is a PersistenceCapable(serialised) |
Methods inherited from class org.jpox.store.rdbms.table.JoinTable |
getIDMapping, getOwnerFieldMetaData, getOwnerMapping, getPrimaryKey, requiresPrimaryKey |
Methods inherited from class org.jpox.store.rdbms.table.TableImpl |
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.jpox.store.rdbms.table.SCOTable |
getOwnerMapping |
Methods inherited from interface org.jpox.store.rdbms.table.Table |
create, drop, exists, getCatalogName, getSchemaName, isInitialized, isInitializedModified, isValidated, postInitialize, preInitialize, validate |
Methods inherited from interface org.jpox.store.DatastoreContainerObject |
addDatastoreField, getDiscriminatorMapping, getDiscriminatorMetaData, getIDMapping, getVersionMapping, getVersionMetaData, hasDatastoreField |
Methods inherited from interface org.jpox.store.DatastoreObject |
getIdentifier, getStoreManager |
Field Detail |
protected java.util.Map embeddedKeyMappingsMap
protected java.util.Map embeddedValueMappingsMap
Constructor Detail |
public MapTable(DatastoreIdentifier tableName, AbstractPropertyMetaData fmd, RDBMSManager storeMgr)
tableName
- Identifier name of the tablefmd
- MetaData for the field of the ownerstoreMgr
- The Store Manager managing these tables.Method Detail |
public void initialize(ClassLoaderResolver clr)
initialize
in interface Table
clr
- The ClassLoaderResolverprotected void applyUserPrimaryKeySpecification(PrimaryKeyMetaData pkmd)
pkmd
- MetaData for the primary keypublic boolean isEmbeddedKey()
public boolean isSerialisedKey()
public boolean isSerialisedKeyPC()
public boolean isEmbeddedKeyPC()
public boolean isEmbeddedValue()
public boolean isSerialisedValue()
public boolean isSerialisedValuePC()
public boolean isEmbeddedValuePC()
public JavaTypeMapping getKeyMapping()
public JavaTypeMapping getValueMapping()
public java.lang.String getKeyType()
public java.lang.String getValueType()
public JavaTypeMapping getAdapterMapping()
protected java.util.List getExpectedForeignKeys(ClassLoaderResolver clr)
getExpectedForeignKeys
in class TableImpl
clr
- The ClassLoaderResolver
protected java.util.Set getExpectedIndices(ClassLoaderResolver clr)
getExpectedIndices
in class TableImpl
clr
- The ClassLoaderResolver
protected java.util.List getExpectedCandidateKeys()
getExpectedCandidateKeys
in class TableImpl
public JavaTypeMapping getFieldMapping(AbstractPropertyMetaData fmd)
getFieldMapping
in interface DatastoreContainerObject
fmd
- MetaData for the field whose mapping we want
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |