public class SecondaryTable extends AbstractClassTable implements SecondaryDatastoreClass
datastoreIDMapping, discriminatorMapping, discriminatorMetaData, highestMemberNumber, idMapping, memberMappingsMap, pkMappings, tenantMapping, versionMapping, versionMetaData
columns, columnsByIdentifier, dba, existsInDatastore, identifier, state, storeMgr, TABLE_STATE_INITIALIZED, TABLE_STATE_INITIALIZED_MODIFIED, TABLE_STATE_NEW, TABLE_STATE_PK_INITIALIZED, TABLE_STATE_VALIDATED
Modifier and Type | Method and Description |
---|---|
DatastoreClass |
getBaseDatastoreClass()
Accessor for the base datastore class.
|
DatastoreClass |
getBaseDatastoreClassWithMember(org.datanucleus.metadata.AbstractMemberMetaData mmd)
Convenience accessor for the base table for this table which has the specified field.
|
protected List |
getExpectedForeignKeys()
Accessor for the expected foreign keys for this table.
|
JavaTypeMapping |
getExternalMapping(org.datanucleus.metadata.AbstractMemberMetaData fmd,
int mappingType)
Accessor for the external mapping for the specified field of the specified type.
|
org.datanucleus.metadata.IdentityType |
getIdentityType()
Accessor for the identity-type.
|
JavaTypeMapping |
getIdMapping()
Accessor for the ID mapping for this table.
|
org.datanucleus.metadata.JoinMetaData |
getJoinMetaData()
Accessor for the JoinMetaData which is used to join to the primary DatastoreClass.
|
String[] |
getManagedClasses()
Accessor for the names of all classes managed by this table.
|
JavaTypeMapping |
getMemberMapping(org.datanucleus.metadata.AbstractMemberMetaData mmd)
Accessor for the field/property Mapping.
|
JavaTypeMapping |
getMemberMapping(String fieldName)
Accessor for the field mapping for the specified field.
|
JavaTypeMapping |
getMemberMappingInDatastoreClass(org.datanucleus.metadata.AbstractMemberMetaData mmd)
Accessor for the mapping for the specified field only in this datastore class.
|
org.datanucleus.metadata.AbstractMemberMetaData |
getMetaDataForExternalMapping(JavaTypeMapping mapping,
int mappingType)
Accessor for the owner field metadata for the specified external mapping of the
specified type
|
DatastoreClass |
getPrimaryDatastoreClass()
Accessor for the primary datastore class that this is dependent on.
|
PrimaryKey |
getPrimaryKey()
Accessor for the primary key for this table.
|
Collection |
getSecondaryDatastoreClasses()
Accessor for any secondary tables for this table.
|
DatastoreClass |
getSuperDatastoreClass()
Accessor for the supertable for this table.
|
String |
getType()
Accessor for the main type represented here.
|
void |
initialize(org.datanucleus.ClassLoaderResolver clr)
Method to initialise the table.
|
protected void |
initializePK(org.datanucleus.ClassLoaderResolver clr)
Method to initialise the primary key of this table.
|
boolean |
isBaseDatastoreClass()
Whether this table is the base in the inheritance hierarchy.
|
boolean |
isObjectIdDatastoreAttributed()
Whether this table or super table has id (primary key) attributed by the datastore
|
boolean |
isSuperDatastoreClass(DatastoreClass table)
Accessor whether the supplied DatastoreClass is a supertable of this table.
|
boolean |
managesClass(String className)
Accessor for whether this table manages the specified class
|
void |
postInitialize(org.datanucleus.ClassLoaderResolver clr)
Post initilize.
|
void |
preInitialize(org.datanucleus.ClassLoaderResolver clr)
Pre initilize.
|
void |
provideExternalMappings(MappingConsumer consumer,
int mappingType)
Instruction to provide all external mappings to the passed consumer.
|
void |
providePrimaryKeyMappings(MappingConsumer consumer)
Provide the mappings to the consumer for all primary-key fields mapped to
this table (for application identity).
|
void |
provideUnmappedColumns(MappingConsumer consumer)
Method to provide all unmapped datastore fields (columns) to the consumer.
|
addMemberMapping, addMultitenancyMapping, getDatastoreIdColumn, getDatastoreIdMapping, getDiscriminatorColumn, getDiscriminatorMapping, getMappingForMemberName, getMultitenancyColumn, getMultitenancyMapping, getPrimaryTable, getVersionColumn, getVersionMapping, managesMapping, managesMember, provideDatastoreIdMappings, provideDiscriminatorMappings, provideMappingsForMembers, provideMultitenancyMapping, provideNonPrimaryKeyMappings, provideVersionMappings
createConstraints, dropConstraints, getExpectedCandidateKeys, getExpectedForeignKeys, getExpectedIndices, getSQLAddCandidateKeyStatements, getSQLAddFKStatements, getSQLCreateIndexStatements, getSQLCreateStatements, getSQLDropStatements, initializeColumnInfoForPrimaryKeyColumns, initializeColumnInfoFromDatastore, logMapping, validate, validateColumns, validateConstraints, validatePrimaryKey
addColumn, addColumnInternal, allowDDLOutput, assertIsInitialized, assertIsInitializedModified, assertIsPKInitialized, assertIsPKUninitialized, assertIsUninitialized, assertIsValidated, create, drop, equals, executeDdlStatement, executeDdlStatementList, exists, getCatalogName, getClassMetaData, getColumn, getColumnForName, getColumnForPosition, getColumns, getDatastoreIdentifierFullyQualified, getDiscriminatorMetaData, getIdentifier, getMemberColumnMappingForEmbeddedMember, getMemberColumnMappingForMember, getMemberColumnMappings, getName, getNumberOfColumns, getSchemaName, getStoreManager, getVersionMetaData, hasColumn, hasColumnName, hashCode, isInitialized, isInitializedModified, isPKInitialized, isValidated, tableExistsInDatastore, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getDatastoreIdMapping, managesMapping, provideDatastoreIdMappings, provideDiscriminatorMappings, provideMappingsForMembers, provideMultitenancyMapping, provideNonPrimaryKeyMappings, provideVersionMappings, toString
addColumn, create, drop, exists, getColumn, getDiscriminatorMapping, getDiscriminatorMetaData, getIdentifier, getMultitenancyMapping, getStoreManager, getVersionMapping, getVersionMetaData, hasColumn, isInitialized, isInitializedModified, isValidated, validate
getCatalogName, getClassMetaData, getColumnForName, getColumnForPosition, getColumns, getDatastoreIdColumn, getDiscriminatorColumn, getMemberColumnMappingForEmbeddedMember, getMemberColumnMappingForMember, getMemberColumnMappings, getMultitenancyColumn, getName, getNumberOfColumns, getSchemaName, getVersionColumn
public void preInitialize(org.datanucleus.ClassLoaderResolver clr)
preInitialize
in class TableImpl
clr
- the ClassLoaderResolverpublic void initialize(org.datanucleus.ClassLoaderResolver clr)
clr
- The ClassLoaderResolverpublic void postInitialize(org.datanucleus.ClassLoaderResolver clr)
postInitialize
in class TableImpl
clr
- the ClassLoaderResolverprotected void initializePK(org.datanucleus.ClassLoaderResolver clr)
initializePK
in class AbstractClassTable
clr
- The ClassLoaderResolverAbstractClassTable.initializePK(ClassLoaderResolver)
public PrimaryKey getPrimaryKey()
getPrimaryKey
in class TableImpl
public DatastoreClass getPrimaryDatastoreClass()
getPrimaryDatastoreClass
in interface SecondaryDatastoreClass
public org.datanucleus.metadata.JoinMetaData getJoinMetaData()
getJoinMetaData
in interface SecondaryDatastoreClass
public org.datanucleus.metadata.IdentityType getIdentityType()
getIdentityType
in interface DatastoreClass
getIdentityType
in class AbstractClassTable
public String getType()
getType
in interface DatastoreClass
public boolean isObjectIdDatastoreAttributed()
isObjectIdDatastoreAttributed
in interface DatastoreClass
isObjectIdDatastoreAttributed
in class AbstractClassTable
public boolean isBaseDatastoreClass()
isBaseDatastoreClass
in interface DatastoreClass
public DatastoreClass getBaseDatastoreClass()
DatastoreClass
getBaseDatastoreClass
in interface DatastoreClass
public DatastoreClass getBaseDatastoreClassWithMember(org.datanucleus.metadata.AbstractMemberMetaData mmd)
getBaseDatastoreClassWithMember
in interface DatastoreClass
mmd
- Field MetaData for this fieldpublic DatastoreClass getSuperDatastoreClass()
getSuperDatastoreClass
in interface DatastoreClass
public boolean isSuperDatastoreClass(DatastoreClass table)
isSuperDatastoreClass
in interface DatastoreClass
table
- The DatastoreClass to checkpublic Collection getSecondaryDatastoreClasses()
getSecondaryDatastoreClasses
in interface DatastoreClass
public boolean managesClass(String className)
managesClass
in interface DatastoreClass
className
- Name of the classpublic String[] getManagedClasses()
DatastoreClass
getManagedClasses
in interface DatastoreClass
protected List getExpectedForeignKeys()
public JavaTypeMapping getMemberMapping(org.datanucleus.metadata.AbstractMemberMetaData mmd)
getMemberMapping
in interface DatastoreClass
mmd
- Field MetaData for this field/propertypublic JavaTypeMapping getMemberMappingInDatastoreClass(org.datanucleus.metadata.AbstractMemberMetaData mmd)
getMemberMappingInDatastoreClass
in interface DatastoreClass
mmd
- Metadata of the field/propertypublic JavaTypeMapping getMemberMapping(String fieldName)
getMemberMapping
in interface DatastoreClass
fieldName
- Name of the fieldpublic JavaTypeMapping getIdMapping()
public void providePrimaryKeyMappings(MappingConsumer consumer)
providePrimaryKeyMappings
in interface DatastoreClass
providePrimaryKeyMappings
in class AbstractClassTable
consumer
- Consumer for the mappingspublic void provideExternalMappings(MappingConsumer consumer, int mappingType)
DatastoreClass
provideExternalMappings
in interface DatastoreClass
consumer
- The consumer for the mappingsmappingType
- Type of external mapping to providepublic void provideUnmappedColumns(MappingConsumer consumer)
provideUnmappedColumns
in interface DatastoreClass
consumer
- Consumer of informationpublic JavaTypeMapping getExternalMapping(org.datanucleus.metadata.AbstractMemberMetaData fmd, int mappingType)
DatastoreClass
getExternalMapping
in interface DatastoreClass
fmd
- MetaData for the (external) field/propertymappingType
- The type of mappingpublic org.datanucleus.metadata.AbstractMemberMetaData getMetaDataForExternalMapping(JavaTypeMapping mapping, int mappingType)
DatastoreClass
getMetaDataForExternalMapping
in interface DatastoreClass
mapping
- The external mappingmappingType
- The type of mappingCopyright © 2017. All rights reserved.