|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DatastoreClass
Representation of a Java class in a datastore. In the case of RDBMS this will be a table (primary or secondary). In the case of a file-based structure this may be a directory. In the case of an XML-based structure this may be an element.
| Method Summary | |
|---|---|
DatastoreClass |
getBaseDatastoreClassWithField(AbstractMemberMetaData fmd)
Method to return the base DatastoreClass that persists the specified field. |
JavaTypeMapping |
getDataStoreObjectIdMapping()
Accessor for a mapping for the datastore ID (OID) for this object. |
JavaTypeMapping |
getExternalMapping(AbstractMemberMetaData fmd,
int mappingType)
Accessor for the external mapping for the specified field of the specified type. |
JavaTypeMapping |
getFieldMapping(AbstractMemberMetaData mmd)
Accessor for the mapping for the specified field. |
JavaTypeMapping |
getFieldMapping(java.lang.String fieldName)
Accessor for the mapping for the specified field name. |
JavaTypeMapping |
getFieldMappingInDatastoreClass(AbstractMemberMetaData mmd)
Accessor for the mapping for the specified field only in this datastore class. |
IdentityType |
getIdentityType()
Accessor for the identity-type used by this table. |
AbstractMemberMetaData |
getMetaDataForExternalMapping(JavaTypeMapping mapping,
int mappingType)
Accessor for the owner field metadata for the specified external mapping of the specified type |
java.util.Collection |
getSecondaryDatastoreClasses()
Accessor for any secondary tables for this table. |
DatastoreClass |
getSuperDatastoreClass()
Accessor for the supertable for this table. |
java.lang.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 |
managesClass(java.lang.String className)
Accessor for whether this table manages the specified class |
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 |
provideMappingsForFields(MappingConsumer consumer,
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(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 |
provideUnmappedDatastoreFields(MappingConsumer consumer)
Instruction to provide all datastore fields without mappings. |
void |
provideVersionMappings(MappingConsumer consumer)
Provide the mappings to version mappings |
java.lang.String |
toString()
Accessor for the name of the datastore class (table). |
| Methods inherited from interface org.jpox.store.mapped.DatastoreContainerObject |
|---|
addDatastoreField, getDatastoreFieldsMetaData, getDiscriminatorMapping, getDiscriminatorMetaData, getIDMapping, getVersionMapping, getVersionMetaData, hasDatastoreField |
| Methods inherited from interface org.jpox.store.mapped.DatastoreObject |
|---|
getIdentifier, getStoreManager |
| Method Detail |
|---|
java.lang.String getType()
IdentityType getIdentityType()
boolean isObjectIDDatastoreAttributed()
boolean isBaseDatastoreClass()
DatastoreClass getBaseDatastoreClassWithField(AbstractMemberMetaData fmd)
fmd - MetaData for the field required
DatastoreClass getSuperDatastoreClass()
java.util.Collection getSecondaryDatastoreClasses()
boolean managesClass(java.lang.String className)
className - Name of the class
java.lang.String toString()
toString in class java.lang.ObjectJavaTypeMapping getDataStoreObjectIdMapping()
JavaTypeMapping getFieldMapping(java.lang.String fieldName)
fieldName - Name of field
JavaTypeMapping getFieldMapping(AbstractMemberMetaData mmd)
getFieldMapping in interface DatastoreContainerObjectmmd - Metadata of the field/property
JavaTypeMapping getFieldMappingInDatastoreClass(AbstractMemberMetaData mmd)
mmd - Metadata of the field/property
void provideDatastoreIdMappings(MappingConsumer consumer)
consumer - Consumer for the mappingsvoid providePrimaryKeyMappings(MappingConsumer consumer)
consumer - Consumer for the mappingsvoid provideNonPrimaryKeyMappings(MappingConsumer consumer)
consumer - Consumer for the mappings
void provideMappingsForFields(MappingConsumer consumer,
AbstractMemberMetaData[] fieldMetaData,
boolean includeSecondaryTables)
consumer - Consumer for the mappingsfieldMetaData - MetaData of the fields 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 provideUnmappedDatastoreFields(MappingConsumer consumer)
consumer - The consumer for the datastore fields
void provideExternalMappings(MappingConsumer consumer,
int mappingType)
consumer - The consumer for the mappingsmappingType - Type of external mapping to provide
JavaTypeMapping getExternalMapping(AbstractMemberMetaData fmd,
int mappingType)
fmd - MetaData for the (external) fieldmappingType - The type of mapping
AbstractMemberMetaData getMetaDataForExternalMapping(JavaTypeMapping mapping,
int mappingType)
mapping - The external mappingmappingType - The type of mapping
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||