org.jpox.store.mapped.mapping
Class EmbeddedPCMapping
java.lang.Object
org.jpox.store.mapped.mapping.JavaTypeMapping
org.jpox.store.mapped.mapping.SingleFieldMapping
org.jpox.store.mapped.mapping.EmbeddedMapping
org.jpox.store.mapped.mapping.EmbeddedPCMapping
- All Implemented Interfaces:
- MappingCallbacks, SimpleDatastoreRepresentation
public class EmbeddedPCMapping
- extends EmbeddedMapping
- implements MappingCallbacks
Mapping for a PC object embedded within another PC object (1-1 relation).
Provides mapping for a single Java type (the PC type) to multiple datastore columns.
Allows for nested embedded fields.
Implements MappingCallbacks since if we are embedding a MappingCallbacks field (e.g a BLOB on Oracle)
then we need in turn to call the underlying MappingCallbacks methods.
- Version:
- $Revision: 1.35 $
| Fields inherited from class org.jpox.store.mapped.mapping.JavaTypeMapping |
datastoreContainer, datastoreMappings, dba, fmd, LOCALISER, MAPPING_ARRAY_ELEMENT, MAPPING_COLLECTION_ELEMENT, MAPPING_FIELD, MAPPING_MAP_KEY, MAPPING_MAP_VALUE, referenceMapping, roleForField, type |
| Methods inherited from class org.jpox.store.mapped.mapping.EmbeddedMapping |
addJavaTypeMapping, getJavaType, getJavaTypeMapping, getJavaTypeMapping, getNumberOfJavaTypeMappings, getObject, getObject, getSampleValue, initialize, newLiteral, newScalarExpression, prepareDatastoreMapping, setObject, setObject |
| Methods inherited from class org.jpox.store.mapped.mapping.SingleFieldMapping |
equals, getBoolean, getByte, getChar, getDefaultLength, getDouble, getFloat, getInt, getJavaTypeForDatastoreMapping, getLong, getShort, getString, getValidValues, setBoolean, setByte, setChar, setDouble, setFloat, setInt, setLong, setShort, setString |
| Methods inherited from class org.jpox.store.mapped.mapping.JavaTypeMapping |
addDataStoreMapping, failureMessage, getDatastoreContainer, getDataStoreMapping, getDataStoreMappings, getFieldMetaData, getNumberOfDatastoreFields, getReferenceMapping, getRoleForField, getType, includeInFetchStatement, includeInInsertStatement, includeInUpdateStatement, initialize, isNullable, isSerialised, setDefault, setFieldInformation, setReferenceMapping, setRoleForField |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EmbeddedPCMapping
public EmbeddedPCMapping()
initialize
public void initialize(DatastoreAdapter dba,
AbstractMemberMetaData fmd,
DatastoreContainerObject container,
ClassLoaderResolver clr)
- Initialize this JavaTypeMapping with the given DatastoreAdapter for
the given FieldMetaData.
- Overrides:
initialize in class EmbeddedMapping
- Parameters:
dba - The Datastore Adapter that this Mapping should use.fmd - FieldMetaData for the field to be mapped (if any)container - The datastore container storing this mapping (if any)clr - the ClassLoaderResolver
postFetch
public void postFetch(StateManager sm)
- MappingCallback called when the owning object is being fetched.
- Specified by:
postFetch in interface MappingCallbacks
- Parameters:
sm - StateManager of the owning object
postInsert
public void postInsert(StateManager sm)
- MappingCallback called when the owning object has just being inserted.
- Specified by:
postInsert in interface MappingCallbacks
- Parameters:
sm - StateManager of the owning object
postUpdate
public void postUpdate(StateManager sm)
- MappingCallback called when the owning object has just being udpated.
- Specified by:
postUpdate in interface MappingCallbacks
- Parameters:
sm - StateManager of the owning object
preDelete
public void preDelete(StateManager sm)
- MappingCallback called when the owning object is about to be deleted.
- Specified by:
preDelete in interface MappingCallbacks
- Parameters:
sm - StateManager of the owning object
Copyright © -2008 . All Rights Reserved.