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.
version: $Revision: 1.37 $
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.
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.
providePrimaryKeyMappings(MappingConsumer consumer) Provide the mappings to the consumer for all primary-key fields mapped to
this table (for application identity).
Method to delete an object for this class.
Will delete any superclass records as well (recursive).
Parameters: sm - StateManager for the object to delete.
Method to fetch an object for this class.
Will fetch any superclass records as well (recursive).
Parameters: sm - StateManager for the object to fetch. Parameters: fieldMetaData - MetaData for the fields to be fetched
Method to return the base DatastoreClass that persists the
specified field. This navigates up through the superclass
tables to find a table that manages the field.
Parameters: fmd - MetaData for the field required The DatastoreClass managing that field
Accessor for the external mapping for the specified field of the specified type.
An external mapping is a mapping for which there is no field in the actual class
to represent it (part of a relation).
The type can be FK, FK discriminator, order, etc
Parameters: fmd - MetaData for the (external) field Parameters: mappingType - The type of mapping The external mapping
Accessor for the mapping for the specified field name.
Doesn't cope with fields of the same name in different subclasses - you
should call the equivalent method passing FieldMetaData for those.
Parameters: fieldName - Name of field The Mapping for the field.
Accessor for the mapping for the specified field only in this datastore class.
Parameters: mmd - Metadata of the field/property The Mapping for the field (or null if not present here)
Accessor for the owner field metadata for the specified external mapping of the
specified type
Parameters: mapping - The external mapping Parameters: mappingType - The type of mapping Field MetaData in the owner class
Accessor for the supertable for this table.
This is only relevant if the DatastoreClass in use supports supertables.
If supertables arent supported by the datastore then null is returned.
The supertable (if any)
Method to insert an object for this class.
Will insert any superclass records as well (recursive).
Parameters: sm - StateManager for the object to insert.
Accessor for whether the object id will be attributed by the datastore
directly, or whether values have to be supplied.
Whether it is attributed in the datastore
Locates this object in the datastore.
Parameters: sm - The StateManager for the object to be found throws: JPOXObjectNotFoundException - If the instance does not exist in the datastore
managesClass
public boolean managesClass(String className)(Code)
Accessor for whether this table manages the specified class
Parameters: className - Name of the class Whether it is managed by this table
Instruction to provide all external mappings to the passed consumer.
Parameters: consumer - The consumer for the mappings Parameters: mappingType - Type of external mapping to provide
Provide the mappings to the consumer for all absolute field Numbers in this table
that are container in the fieldNumbers parameter.
Parameters: consumer - Consumer for the mappings Parameters: fieldMetaData - MetaData of the fields to provide mappings for Parameters: includeSecondaryTables - Whether to supply fields in secondary tables
Provide the mappings to the consumer for all primary-key fields mapped to
this table (for application identity).
Parameters: consumer - Consumer for the mappings
Method to update an object for this class.
Will update any superclass records as well (recursive).
Parameters: sm - StateManager for the object to update. Parameters: fieldMetaData - MetaData for the fields to be updated