public class SecondaryTable extends AbstractClassTable implements SecondaryDatastoreClass
datastoreIdMapping, discriminatorMapping, discriminatorMetaData, highestMemberNumber, idMapping, memberMappingsMap, multitenancyMapping, pkMappings, softDeleteMapping, versionMapping, versionMetaDatacolumns, 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, provideSurrogateMappingcreateConstraints, dropConstraints, getExpectedCandidateKeys, getExpectedForeignKeys, getExpectedIndices, getSQLAddCandidateKeyStatements, getSQLAddFKStatements, getSQLCreateIndexStatements, getSQLCreateStatements, getSQLDropStatements, initializeColumnInfoForPrimaryKeyColumns, initializeColumnInfoFromDatastore, logMapping, validate, validateColumns, validateConstraints, validatePrimaryKeyaddColumn, 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, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitmanagesMapping, provideMappingsForMembers, provideNonPrimaryKeyMappings, provideSurrogateMapping, toStringaddColumn, create, drop, exists, getColumn, getDiscriminatorMetaData, getIdentifier, getStoreManager, getSurrogateMapping, getVersionMetaData, hasColumn, isInitialized, isInitializedModified, isValidated, validategetCatalogName, getClassMetaData, getColumnForName, getColumnForPosition, getColumns, getMemberColumnMappingForEmbeddedMember, getMemberColumnMappingForMember, getMemberColumnMappings, getName, getNumberOfColumns, getSchemaName, getSurrogateColumnpublic void preInitialize(org.datanucleus.ClassLoaderResolver clr)
preInitialize in class TableImplclr - the ClassLoaderResolverpublic void initialize(org.datanucleus.ClassLoaderResolver clr)
clr - The ClassLoaderResolverpublic void postInitialize(org.datanucleus.ClassLoaderResolver clr)
postInitialize in class TableImplclr - the ClassLoaderResolverprotected void initializePK(org.datanucleus.ClassLoaderResolver clr)
initializePK in class AbstractClassTableclr - The ClassLoaderResolverAbstractClassTable.initializePK(ClassLoaderResolver)public PrimaryKey getPrimaryKey()
getPrimaryKey in class TableImplpublic DatastoreClass getPrimaryDatastoreClass()
getPrimaryDatastoreClass in interface SecondaryDatastoreClasspublic org.datanucleus.metadata.JoinMetaData getJoinMetaData()
getJoinMetaData in interface SecondaryDatastoreClasspublic org.datanucleus.metadata.IdentityType getIdentityType()
getIdentityType in interface DatastoreClassgetIdentityType in class AbstractClassTablepublic String getType()
getType in interface DatastoreClasspublic boolean isObjectIdDatastoreAttributed()
isObjectIdDatastoreAttributed in interface DatastoreClassisObjectIdDatastoreAttributed in class AbstractClassTablepublic boolean isBaseDatastoreClass()
isBaseDatastoreClass in interface DatastoreClasspublic DatastoreClass getBaseDatastoreClass()
DatastoreClassgetBaseDatastoreClass in interface DatastoreClasspublic DatastoreClass getBaseDatastoreClassWithMember(org.datanucleus.metadata.AbstractMemberMetaData mmd)
getBaseDatastoreClassWithMember in interface DatastoreClassmmd - MetaData for this memberpublic DatastoreClass getSuperDatastoreClass()
getSuperDatastoreClass in interface DatastoreClasspublic boolean isSuperDatastoreClass(DatastoreClass table)
isSuperDatastoreClass in interface DatastoreClasstable - The DatastoreClass to checkpublic Collection getSecondaryDatastoreClasses()
getSecondaryDatastoreClasses in interface DatastoreClasspublic boolean managesClass(String className)
managesClass in interface DatastoreClassclassName - Name of the classpublic String[] getManagedClasses()
DatastoreClassgetManagedClasses in interface DatastoreClassprotected List<ForeignKey> getExpectedForeignKeys()
public JavaTypeMapping getMemberMapping(org.datanucleus.metadata.AbstractMemberMetaData mmd)
getMemberMapping in interface DatastoreClassmmd - MetaData for this memberpublic JavaTypeMapping getMemberMappingInDatastoreClass(org.datanucleus.metadata.AbstractMemberMetaData mmd)
getMemberMappingInDatastoreClass in interface DatastoreClassmmd - Metadata of the memberpublic JavaTypeMapping getMemberMapping(String memberName)
getMemberMapping in interface DatastoreClassmemberName - Name of the memberpublic JavaTypeMapping getIdMapping()
public void providePrimaryKeyMappings(MappingConsumer consumer)
providePrimaryKeyMappings in interface DatastoreClassprovidePrimaryKeyMappings in class AbstractClassTableconsumer - Consumer for the mappingspublic void provideExternalMappings(MappingConsumer consumer, MappingType mappingType)
DatastoreClassprovideExternalMappings in interface DatastoreClassconsumer - The consumer for the mappingsmappingType - Type of external mapping to providepublic void provideUnmappedColumns(MappingConsumer consumer)
provideUnmappedColumns in interface DatastoreClassconsumer - Consumer of informationpublic JavaTypeMapping getExternalMapping(org.datanucleus.metadata.AbstractMemberMetaData fmd, MappingType mappingType)
DatastoreClassgetExternalMapping in interface DatastoreClassfmd - MetaData for the (external) field/propertymappingType - The type of mappingpublic org.datanucleus.metadata.AbstractMemberMetaData getMetaDataForExternalMapping(JavaTypeMapping mapping, MappingType mappingType)
DatastoreClassgetMetaDataForExternalMapping in interface DatastoreClassmapping - The external mappingmappingType - The type of mappingCopyright © 2019. All rights reserved.