public interface DatastoreClass extends Table
Modifier and Type | Method and Description |
---|---|
DatastoreClass |
getBaseDatastoreClass()
Accessor for the base datastore class.
|
DatastoreClass |
getBaseDatastoreClassWithMember(org.datanucleus.metadata.AbstractMemberMetaData fmd)
Method to return the base DatastoreClass that persists the
specified field.
|
JavaTypeMapping |
getDatastoreIdMapping()
Accessor for a mapping for the datastore ID for this object.
|
JavaTypeMapping |
getExternalMapping(org.datanucleus.metadata.AbstractMemberMetaData mmd,
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 used by this table.
|
String[] |
getManagedClasses()
Accessor for the names of all classes managed by this table.
|
JavaTypeMapping |
getMemberMapping(org.datanucleus.metadata.AbstractMemberMetaData mmd)
Accessor for the mapping for the specified field.
|
JavaTypeMapping |
getMemberMapping(String memberName)
Accessor for the mapping for the specified member name.
|
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
|
Collection<SecondaryDatastoreClass> |
getSecondaryDatastoreClasses()
Accessor for any secondary tables for this table.
|
DatastoreClass |
getSuperDatastoreClass()
Accessor for the supertable for this table.
|
String |
getType()
Accessor for the primary class represented.
|
boolean |
isBaseDatastoreClass()
Accessor for whether this datastore class is the base datastore class
for this inheritance hierarchy.
|
boolean |
isObjectIdDatastoreAttributed()
Accessor for whether the object id will be attributed by the datastore
directly, or whether values have to be supplied.
|
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
|
boolean |
managesMapping(JavaTypeMapping mapping)
Convenience method to return if this table manages the columns for the supplied mapping.
|
void |
provideDatastoreIdMappings(MappingConsumer consumer)
Accessor for a mapping for the datastore ID (OID) for this table.
|
void |
provideDiscriminatorMappings(MappingConsumer consumer)
Provide the mappings to discriminator mappings
|
void |
provideExternalMappings(MappingConsumer consumer,
int mappingType)
Instruction to provide all external mappings to the passed consumer.
|
void |
provideMappingsForMembers(MappingConsumer consumer,
org.datanucleus.metadata.AbstractMemberMetaData[] mmds,
boolean includeSecondaryTables)
Provide the mappings to the consumer for all specified members.
|
void |
provideMultitenancyMapping(MappingConsumer consumer)
Provide the mapping for multitenancy discriminator (if any).
|
void |
provideNonPrimaryKeyMappings(MappingConsumer consumer)
Provide the mappings to the consumer for all non primary-key fields mapped to this table.
|
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)
Instruction to provide all columns without mappings.
|
void |
provideVersionMappings(MappingConsumer consumer)
Provide the mappings to version mappings
|
String |
toString()
Accessor for the name of the datastore class (table).
|
addColumn, create, drop, exists, getColumn, getDiscriminatorMapping, getDiscriminatorMetaData, getIdentifier, getIdMapping, getMultitenancyMapping, getStoreManager, getVersionMapping, getVersionMetaData, hasColumn, initialize, isInitialized, isInitializedModified, isValidated, postInitialize, preInitialize, validate
getCatalogName, getClassMetaData, getColumnForName, getColumnForPosition, getColumns, getDatastoreIdColumn, getDiscriminatorColumn, getMemberColumnMappingForEmbeddedMember, getMemberColumnMappingForMember, getMemberColumnMappings, getMultitenancyColumn, getName, getNumberOfColumns, getSchemaName, getVersionColumn
String getType()
org.datanucleus.metadata.IdentityType getIdentityType()
boolean isObjectIdDatastoreAttributed()
boolean isBaseDatastoreClass()
DatastoreClass getBaseDatastoreClass()
DatastoreClass getBaseDatastoreClassWithMember(org.datanucleus.metadata.AbstractMemberMetaData fmd)
fmd
- MetaData for the field requiredboolean isSuperDatastoreClass(DatastoreClass table)
table
- The DatastoreClass to checkDatastoreClass getSuperDatastoreClass()
Collection<SecondaryDatastoreClass> getSecondaryDatastoreClasses()
boolean managesClass(String className)
className
- Name of the classString[] getManagedClasses()
boolean managesMapping(JavaTypeMapping mapping)
mapping
- The mappingString toString()
JavaTypeMapping getDatastoreIdMapping()
JavaTypeMapping getMemberMapping(String memberName)
memberName
- Name of field/propertyJavaTypeMapping getMemberMapping(org.datanucleus.metadata.AbstractMemberMetaData mmd)
mmd
- Metadata of the field/propertyJavaTypeMapping getMemberMappingInDatastoreClass(org.datanucleus.metadata.AbstractMemberMetaData mmd)
mmd
- Metadata of the field/propertyvoid provideDatastoreIdMappings(MappingConsumer consumer)
consumer
- Consumer for the mappingsvoid providePrimaryKeyMappings(MappingConsumer consumer)
consumer
- Consumer for the mappingsvoid provideNonPrimaryKeyMappings(MappingConsumer consumer)
consumer
- Consumer for the mappingsvoid provideMappingsForMembers(MappingConsumer consumer, org.datanucleus.metadata.AbstractMemberMetaData[] mmds, boolean includeSecondaryTables)
consumer
- Consumer for the mappingsmmds
- MetaData of the fields/properties to provide mappings forincludeSecondaryTables
- Whether to supply fields in secondary tablesvoid provideVersionMappings(MappingConsumer consumer)
consumer
- Consumer for the version mappingsvoid provideDiscriminatorMappings(MappingConsumer consumer)
consumer
- Consumer for the mappingsvoid provideMultitenancyMapping(MappingConsumer consumer)
consumer
- Consumer for the mappingvoid provideUnmappedColumns(MappingConsumer consumer)
consumer
- The consumer for the columnsvoid provideExternalMappings(MappingConsumer consumer, int mappingType)
consumer
- The consumer for the mappingsmappingType
- Type of external mapping to provideJavaTypeMapping getExternalMapping(org.datanucleus.metadata.AbstractMemberMetaData mmd, int mappingType)
mmd
- MetaData for the (external) field/propertymappingType
- The type of mappingorg.datanucleus.metadata.AbstractMemberMetaData getMetaDataForExternalMapping(JavaTypeMapping mapping, int mappingType)
mapping
- The external mappingmappingType
- The type of mappingCopyright © 2017. All rights reserved.