|
||||||||||
| 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.AbstractClassTable
public abstract class AbstractClassTable
Abstract representation of a table for a class. Abstracts out the common parts of a primary ClassTable and a SecondaryClassTable.
| Field Summary | |
|---|---|
protected org.jpox.store.mapped.mapping.JavaTypeMapping |
datastoreIDMapping
Mapping for datastore identity (optional). |
protected org.jpox.store.mapped.mapping.JavaTypeMapping |
discriminatorMapping
Mapping for any discriminator column. |
protected org.jpox.metadata.DiscriminatorMetaData |
discriminatorMetaData
MetaData for discriminator for objects stored in this table. |
protected java.util.Map |
fieldMappingsMap
Mappings for fields mapped to this table, keyed by the FieldMetaData. |
protected int |
highestFieldNumber
Highest absolute field number managed by this table |
protected org.jpox.store.mapped.mapping.JavaTypeMapping |
idMapping
Mapping for the id of the table. |
protected org.jpox.store.mapped.mapping.JavaTypeMapping[] |
pkMappings
Mappings for application identity (optional). |
protected org.jpox.store.mapped.mapping.JavaTypeMapping |
versionMapping
Mapping for any version/timestamp column. |
protected org.jpox.metadata.VersionMetaData |
versionMetaData
MetaData for versioning of objects stored in this table. |
| Fields inherited from class org.jpox.store.rdbms.table.AbstractTable |
|---|
columns, columnsByName, completeDdl, dba, ddlWriter, existsInDatastore, 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 | |
|---|---|
AbstractClassTable(org.jpox.store.mapped.DatastoreIdentifier tableName,
RDBMSManager storeMgr)
Constructor. |
|
| Method Summary | |
|---|---|
protected void |
addFieldMapping(org.jpox.store.mapped.mapping.JavaTypeMapping fieldMapping)
Utility to add the mapping for a field to the managed list. |
org.jpox.store.mapped.mapping.JavaTypeMapping |
getDataStoreObjectIdMapping()
Accessor for a mapping for the datastore ID (OID) for this table. |
org.jpox.store.mapped.mapping.JavaTypeMapping |
getDiscriminatorMapping(boolean allowSuperclasses)
Accessor for the discriminator mapping specified . |
abstract org.jpox.metadata.IdentityType |
getIdentityType()
Accessor for the identity-type. |
protected org.jpox.store.mapped.mapping.JavaTypeMapping |
getMappingForFieldName(java.lang.String fieldName)
Accessor for the JavaTypeMapping that is handling the field of the specified name. |
org.jpox.store.mapped.DatastoreContainerObject |
getPrimaryDatastoreContainerObject()
Convenience method to return the primary table. |
org.jpox.store.mapped.mapping.JavaTypeMapping |
getVersionMapping(boolean allowSuperclasses)
Accessor for the version mapping specified . |
protected abstract void |
initializePK(org.jpox.ClassLoaderResolver clr)
Method to initialise the table primary key field(s). |
abstract boolean |
isObjectIDDatastoreAttributed()
Accessor for whether the table has its identity attributed by the datastore (e.g using autoincrement) |
boolean |
managesField(java.lang.String fieldName)
Convenience method for whether the (fully-specified) field is managed by this table |
void |
provideDatastoreIdMappings(org.jpox.store.mapped.mapping.MappingConsumer consumer)
Accessor for a mapping for the datastore ID (OID) for this table. |
void |
provideDiscriminatorMappings(org.jpox.store.mapped.mapping.MappingConsumer consumer)
Provide the discriminator mappings |
void |
provideMappingsForFields(org.jpox.store.mapped.mapping.MappingConsumer consumer,
org.jpox.metadata.AbstractMemberMetaData[] fieldMetaData,
boolean includeSecondaryTables)
Provide the mappings to the consumer for all absolute field Numbers in this table that are container in the fieldNumbers parameter. |
void |
provideNonPrimaryKeyMappings(org.jpox.store.mapped.mapping.MappingConsumer consumer)
Provide the mappings to the consumer for all non primary-key fields mapped to this table. |
abstract void |
providePrimaryKeyMappings(org.jpox.store.mapped.mapping.MappingConsumer consumer)
Provide the mappings to the consumer for all primary-key fields mapped to this table (for application identity). |
void |
provideVersionMappings(org.jpox.store.mapped.mapping.MappingConsumer consumer)
Provide the version mappings. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.jpox.store.rdbms.table.Table |
|---|
initialize |
| Methods inherited from interface org.jpox.store.mapped.DatastoreContainerObject |
|---|
getFieldMapping, getIDMapping |
| Field Detail |
|---|
protected java.util.Map fieldMappingsMap
protected org.jpox.store.mapped.mapping.JavaTypeMapping datastoreIDMapping
protected org.jpox.store.mapped.mapping.JavaTypeMapping[] pkMappings
protected org.jpox.store.mapped.mapping.JavaTypeMapping idMapping
protected org.jpox.store.mapped.mapping.JavaTypeMapping versionMapping
protected org.jpox.metadata.VersionMetaData versionMetaData
protected org.jpox.metadata.DiscriminatorMetaData discriminatorMetaData
protected org.jpox.store.mapped.mapping.JavaTypeMapping discriminatorMapping
protected int highestFieldNumber
| Constructor Detail |
|---|
public AbstractClassTable(org.jpox.store.mapped.DatastoreIdentifier tableName,
RDBMSManager storeMgr)
tableName - Name of the tablestoreMgr - Store Manager that is managing this instance| Method Detail |
|---|
public org.jpox.store.mapped.DatastoreContainerObject getPrimaryDatastoreContainerObject()
protected abstract void initializePK(org.jpox.ClassLoaderResolver clr)
clr - The ClassLoaderResolverpublic boolean managesField(java.lang.String fieldName)
fieldName - Fully qualified name of the field
protected org.jpox.store.mapped.mapping.JavaTypeMapping getMappingForFieldName(java.lang.String fieldName)
fieldName - Name of the field
protected void addFieldMapping(org.jpox.store.mapped.mapping.JavaTypeMapping fieldMapping)
fieldMapping - The mapping for the fieldpublic abstract org.jpox.metadata.IdentityType getIdentityType()
public abstract boolean isObjectIDDatastoreAttributed()
public org.jpox.store.mapped.mapping.JavaTypeMapping getDataStoreObjectIdMapping()
public org.jpox.store.mapped.mapping.JavaTypeMapping getVersionMapping(boolean allowSuperclasses)
getVersionMapping in interface org.jpox.store.mapped.DatastoreContainerObjectgetVersionMapping in class AbstractTableallowSuperclasses - Whether we should return just the mapping from this table
or whether we should return it when this table has none and the supertable has
public org.jpox.store.mapped.mapping.JavaTypeMapping getDiscriminatorMapping(boolean allowSuperclasses)
getDiscriminatorMapping in interface org.jpox.store.mapped.DatastoreContainerObjectgetDiscriminatorMapping in class AbstractTablepublic final void provideDatastoreIdMappings(org.jpox.store.mapped.mapping.MappingConsumer consumer)
consumer - Consumer for the mappingspublic abstract void providePrimaryKeyMappings(org.jpox.store.mapped.mapping.MappingConsumer consumer)
consumer - Consumer for the mappingspublic final void provideNonPrimaryKeyMappings(org.jpox.store.mapped.mapping.MappingConsumer consumer)
consumer - Consumer for the mappings
public void provideMappingsForFields(org.jpox.store.mapped.mapping.MappingConsumer consumer,
org.jpox.metadata.AbstractMemberMetaData[] fieldMetaData,
boolean includeSecondaryTables)
consumer - Consumer for the mappingsfieldMetaData - MetaData for the fields to provide mappings forincludeSecondaryTables - Whether to provide fields in secondary tablespublic final void provideVersionMappings(org.jpox.store.mapped.mapping.MappingConsumer consumer)
consumer - Consumer for the version mappingspublic final void provideDiscriminatorMappings(org.jpox.store.mapped.mapping.MappingConsumer consumer)
consumer - Consumer for the mappings
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||