public class SecondaryTable extends AbstractClassTable implements SecondaryDatastoreClass
datastoreIdMapping, discriminatorMapping, discriminatorMetaData, highestMemberNumber, idMapping, memberMappingsMap, multitenancyMapping, pkMappings, softDeleteMapping, 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 member.
|
protected List<ForeignKey> |
getExpectedForeignKeys()
Accessor for the expected foreign keys for this table.
|
JavaTypeMapping |
getExternalMapping(org.datanucleus.metadata.AbstractMemberMetaData fmd,
MappingType mappingType)
Accessor for the external mapping for the specified member of the specified mapping 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 member Mapping.
|
JavaTypeMapping |
getMemberMapping(String memberName)
Accessor for the mapping for the specified member.
|
JavaTypeMapping |
getMemberMappingInDatastoreClass(org.datanucleus.metadata.AbstractMemberMetaData mmd)
Accessor for the mapping for the specified member only in this datastore class.
|
org.datanucleus.metadata.AbstractMemberMetaData |
getMetaDataForExternalMapping(JavaTypeMapping mapping,
MappingType 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,
MappingType 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, getMappingForMemberName, getPrimaryTable, getSurrogateColumn, getSurrogateMapping, managesMapping, managesMember, provideMappingsForMembers, provideNonPrimaryKeyMappings, provideSurrogateMapping
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
managesMapping, provideMappingsForMembers, provideNonPrimaryKeyMappings, provideSurrogateMapping, toString
addColumn, create, drop, exists, getColumn, getDiscriminatorMetaData, getIdentifier, getStoreManager, getSurrogateMapping, getVersionMetaData, hasColumn, isInitialized, isInitializedModified, isValidated, validate
getCatalogName, getClassMetaData, getColumnForName, getColumnForPosition, getColumns, getMemberColumnMappingForEmbeddedMember, getMemberColumnMappingForMember, getMemberColumnMappings, getName, getNumberOfColumns, getSchemaName, getSurrogateColumn
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
- MetaData for this memberpublic 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<ForeignKey> getExpectedForeignKeys()
public JavaTypeMapping getMemberMapping(org.datanucleus.metadata.AbstractMemberMetaData mmd)
getMemberMapping
in interface DatastoreClass
mmd
- MetaData for this memberpublic JavaTypeMapping getMemberMappingInDatastoreClass(org.datanucleus.metadata.AbstractMemberMetaData mmd)
getMemberMappingInDatastoreClass
in interface DatastoreClass
mmd
- Metadata of the memberpublic JavaTypeMapping getMemberMapping(String memberName)
getMemberMapping
in interface DatastoreClass
memberName
- Name of the memberpublic JavaTypeMapping getIdMapping()
public void providePrimaryKeyMappings(MappingConsumer consumer)
providePrimaryKeyMappings
in interface DatastoreClass
providePrimaryKeyMappings
in class AbstractClassTable
consumer
- Consumer for the mappingspublic void provideExternalMappings(MappingConsumer consumer, MappingType 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, MappingType mappingType)
DatastoreClass
getExternalMapping
in interface DatastoreClass
fmd
- MetaData for the (external) field/propertymappingType
- The type of mappingpublic org.datanucleus.metadata.AbstractMemberMetaData getMetaDataForExternalMapping(JavaTypeMapping mapping, MappingType mappingType)
DatastoreClass
getMetaDataForExternalMapping
in interface DatastoreClass
mapping
- The external mappingmappingType
- The type of mappingCopyright © 2019. All rights reserved.