org.jpox.store.rdbms.table
Class CollectionTable

java.lang.Object
  extended byorg.jpox.store.rdbms.table.AbstractTable
      extended byorg.jpox.store.rdbms.table.TableImpl
          extended byorg.jpox.store.rdbms.table.JoinTable
              extended byorg.jpox.store.rdbms.table.ElementContainerTable
                  extended byorg.jpox.store.rdbms.table.CollectionTable
All Implemented Interfaces:
DatastoreContainerObject, DatastoreObject, SCOTable, Table
Direct Known Subclasses:
ListTable, SetTable

public class CollectionTable
extends ElementContainerTable

Representation of a join table for a Collection. Provides the common parts of Set and List join tables.

Version:
$Revision: 1.25 $

Field Summary
 
Fields inherited from class org.jpox.store.rdbms.table.ElementContainerTable
elementMapping, orderMapping, relationDiscriminatorMapping, relationDiscriminatorValue
 
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
CollectionTable(DatastoreIdentifier tableName, AbstractPropertyMetaData fmd, RDBMSManager storeMgr)
          Constructor.
 
Method Summary
 java.lang.String getElementType()
          Accessor for the element type stored in this Collection/Set/List.
 void initialize(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)
 
Methods inherited from class org.jpox.store.rdbms.table.ElementContainerTable
applyUserPrimaryKeySpecification, getElementMapping, getExpectedCandidateKeys, getExpectedForeignKeys, getExpectedIndices, getFieldMapping, getForeignKeyToElement, getForeignKeyToOwner, getOrderMapping, getRelationDiscriminatorMapping, getRelationDiscriminatorValue
 
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 org.jpox.store.rdbms.table.AbstractTable
addColumnInternal, addDatastoreField, allowDdlDump, assertIsInitialized, assertIsInitializedModified, assertIsPKInitialized, assertIsPKUninitialized, assertIsUninitialized, assertIsValidated, create, drop, equals, executeDdlStatement, executeDdlStatementList, exists, getCatalogName, getDatastoreIdentifierFullyQualified, getDiscriminatorMapping, getDiscriminatorMetaData, getIdentifier, getSchemaName, getStoreManager, getVersionMapping, getVersionMetaData, hasColumnName, hasDatastoreField, hashCode, isDumpingDdl, isInitialized, isInitializedModified, isPKInitialized, isValidated, setDdlDumpWriter, toString
 
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
 

Constructor Detail

CollectionTable

public CollectionTable(DatastoreIdentifier tableName,
                       AbstractPropertyMetaData fmd,
                       RDBMSManager storeMgr)
Constructor.

Parameters:
tableName - Identifier name of the table
fmd - MetaData for the field of the owner
storeMgr - The Store Manager managing these tables.
Method Detail

initialize

public void initialize(ClassLoaderResolver clr)
Method to initialise the table definition. Adds the owner mapping.

Specified by:
initialize in interface Table
Overrides:
initialize in class ElementContainerTable
Parameters:
clr - The ClassLoaderResolver

getElementType

public java.lang.String getElementType()
Accessor for the element type stored in this Collection/Set/List.

Specified by:
getElementType in class ElementContainerTable
Returns:
Name of element type.

isSerialisedElement

public boolean isSerialisedElement()
Accessor for whether the element is serialised into this table. This can be a serialised PersistenceCapable, or a serialised simple type

Returns:
Whether the element is serialised.

isEmbeddedElement

public boolean isEmbeddedElement()
Accessor for whether the element is embedded into this table. This can be an embedded PersistenceCapable, or an embedded simple type

Returns:
Whether the element is embedded.

isSerialisedElementPC

public boolean isSerialisedElementPC()
Accessor for whether the element is a PersistenceCapable(serialised)

Returns:
Whether the element is PC and is serialised

isEmbeddedElementPC

public boolean isEmbeddedElementPC()
Accessor for whether the element is a PersistenceCapable(embedded)

Returns:
Whether the element is PC and is embedded


Copyright © -2007 . All Rights Reserved.