java.lang.Object
org.eclipse.persistence.core.mappings.CoreMapping<AttributeAccessor,AbstractSession,ContainerPolicy,ClassDescriptor,DatabaseField>
org.eclipse.persistence.mappings.DatabaseMapping
org.eclipse.persistence.mappings.AggregateMapping
- All Implemented Interfaces:
Serializable
,Cloneable
- Direct Known Subclasses:
AbstractCompositeCollectionMapping
,AbstractCompositeObjectMapping
,AggregateObjectMapping
,XMLInverseReferenceMapping
,XMLObjectReferenceMapping
Purpose: Two objects can be considered to be related by aggregation if there is a strict
1:1 relationship between the objects. This means that if the source (parent)object exists, then
the target (child or owned) object must exist. This class implements the behavior common to the
aggregate object and structure mappings.
- Since:
- TopLink for Java 1.0
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.persistence.mappings.DatabaseMapping
DatabaseMapping.WriteType
-
Field Summary
Modifier and TypeFieldDescriptionprotected Boolean
Indicates whether the mapping (or at least one of its nested mappings, at any nested depth) references an entity.protected Class
<?> Stores a reference classprotected String
protected ClassDescriptor
The descriptor of the reference classFields inherited from class org.eclipse.persistence.mappings.DatabaseMapping
attributeAccessor, attributeName, derivedIdMapping, derivesId, descriptor, fields, isCacheable, isInSopObject, isJPAId, isLazy, isMapKeyMapping, isOptional, isPrimaryKeyMapping, isReadOnly, isRemotelyInitialized, mapsIdValue, NO_FIELDS, NO_WEIGHT, properties, unconvertedProperties, weight, WEIGHT_AGGREGATE, WEIGHT_DIRECT, WEIGHT_TO_ONE, WEIGHT_TRANSFORM
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected DeleteObjectQuery
buildAggregateDeleteQuery
(DeleteObjectQuery sourceQuery, Object sourceAttributeValue) Make a copy of the sourceQuery for the attribute.protected void
buildAggregateModifyQuery
(ObjectLevelModifyQuery sourceQuery, ObjectLevelModifyQuery aggregateQuery, Object sourceAttributeValue) Initialize the aggregate query with the settings from the source query.protected WriteObjectQuery
buildAggregateWriteQuery
(WriteObjectQuery sourceQuery, Object sourceAttributeValue) Make a copy of the sourceQuery for the attribute.void
buildBackupClone
(Object clone, Object backup, UnitOfWorkImpl unitOfWork) INTERNAL: Clone the attribute from the clone and assign it to the backup.protected Object
buildBackupClonePart
(Object attributeValue, UnitOfWorkImpl unitOfWork) INTERNAL: Build and return a backup clone of the attribute.void
buildClone
(Object original, CacheKey cacheKey, Object clone, Integer refreshCascade, AbstractSession cloningSession) INTERNAL: Clone the attribute from the original and assign it to the clone.void
buildCloneFromRow
(AbstractRecord databaseRow, JoinedAttributeManager joinManager, Object clone, CacheKey sharedCacheKey, ObjectBuildingQuery sourceQuery, UnitOfWorkImpl unitOfWork, AbstractSession executionSession) INTERNAL: A combination of readFromRowIntoObject and buildClone.protected Object
buildClonePart
(Object attributeValue, Object clone, CacheKey parentCacheKey, Integer refreshCascade, AbstractSession cloningSession, boolean isNewObject) INTERNAL: * Build and return a clone of the attribute.protected Object
buildClonePart
(Object original, Object clone, CacheKey cacheKey, Object attributeValue, Integer refreshCascade, AbstractSession cloningSession) INTERNAL: Build and return a clone of the attribute.void
INTERNAL: Copy of the attribute of the object.protected Object
buildCopyOfAttributeValue
(Object attributeValue, CopyGroup group) Copy of the attribute of the object.buildExpression
(Object queryObject, QueryByExamplePolicy policy, Expression expressionBuilder, Map processedObjects, AbstractSession session) INTERNAL: In case Query By Example is used, this method generates an expression from a attribute value pair.protected Object
buildNewMergeInstanceOf
(Object sourceAttributeValue, AbstractSession session) INTERNAL: Build and return a new instance of the specified attribute.protected boolean
compareAttributeValues
(Object attributeValue1, Object attributeValue2, AbstractSession session) INTERNAL: Compare the attributes.compareForChange
(Object clone, Object backup, ObjectChangeSet owner, AbstractSession session) INTERNAL: Compare the changes between two aggregates.boolean
compareObjects
(Object firstObject, Object secondObject, AbstractSession session) INTERNAL: Compare the attributes belonging to this mapping for the objects.void
convertClassNamesToClasses
(ClassLoader classLoader) INTERNAL: Convert all the class-name-based settings in this mapping to actual class-based settings.protected void
executeEvent
(int eventCode, ObjectLevelModifyQuery query) INTERNAL: Execute a descriptor event for the specified event code.protected void
fixAttributeValue
(Object attributeValue, Map<Object, ObjectDescriptor> objectDescriptors, Map<Object, Object> processedObjects, ObjectLevelReadQuery query, DistributedSession session) INTERNAL: An object has been serialized from the server to the remote client.void
fixObjectReferences
(Object object, Map<Object, ObjectDescriptor> objectDescriptors, Map<Object, Object> processedObjects, ObjectLevelReadQuery query, DistributedSession session) INTERNAL: An object has been serialized from the server to the remote client.protected Object
getAttributeValueFromBackupClone
(Object backupClone) Return the appropriate attribute value.protected ObjectBuilder
getObjectBuilder
(Object attributeValue, AbstractSession session) Convenience methodprotected ObjectBuilder
getObjectBuilderForClass
(Class<?> javaClass, AbstractSession session) Convenience methodprotected DescriptorQueryManager
getQueryManager
(Object attributeValue, AbstractSession session) Convenience methodClass
<?> PUBLIC: Returns the reference classINTERNAL: Used by MW.INTERNAL: Return the referenceDescriptor.protected ClassDescriptor
getReferenceDescriptor
(Class<?> theClass, AbstractSession session) INTERNAL: For inheritance purposes.protected ClassDescriptor
getReferenceDescriptor
(Object attributeValue, AbstractSession session) Convenience methodboolean
INTERNAL: Indicates whether the mapping (or at least one of its nested mappings, at any nested depth) references an entity.void
initialize
(AbstractSession session) INTERNAL: Initialize the reference descriptor.boolean
INTERNAL: Related mapping should implement this method to return true.void
iterate
(DescriptorIterator iterator) INTERNAL: Iterate on the appropriate attribute value.protected void
iterateOnAttributeValue
(DescriptorIterator iterator, Object attributeValue) Iterate on the specified attribute value.void
load
(Object object, AttributeItem item, AbstractSession session, boolean fromFetchGroup) Force instantiation of the load group.void
loadAll
(Object object, AbstractSession session, IdentityHashSet loaded) Force instantiation of all indirections.protected void
mergeAttributeValue
(Object targetAttributeValue, boolean isTargetUnInitialized, Object sourceAttributeValue, MergeManager mergeManager, AbstractSession targetSession) Merge the attribute values.void
mergeChangesIntoObject
(Object target, ChangeRecord changeRecord, Object source, MergeManager mergeManager, AbstractSession targetSession) INTERNAL: Merge changes from the source to the target object.void
mergeIntoObject
(Object target, boolean isTargetUnInitialized, Object source, MergeManager mergeManager, AbstractSession targetSession) INTERNAL: Merge changes from the source to the target object.void
postDelete
(DeleteObjectQuery query) INTERNAL: The message is passed to its reference class descriptor.void
postDeleteAttributeValue
(DeleteObjectQuery query, Object attributeValue) INTERNAL: The message is passed to its reference class descriptor.void
postInsert
(WriteObjectQuery query) INTERNAL: The message is passed to its reference class descriptor.void
postInsertAttributeValue
(WriteObjectQuery query, Object attributeValue) INTERNAL: The message is passed to its reference class descriptor.void
postUpdate
(WriteObjectQuery query) INTERNAL: The message is passed to its reference class descriptor.void
postUpdateAttributeValue
(WriteObjectQuery query, Object attributeValue) INTERNAL: The message is passed to its reference class descriptor.void
preDelete
(DeleteObjectQuery query) INTERNAL: The message is passed to its reference class descriptor.void
preDeleteAttributeValue
(DeleteObjectQuery query, Object attributeValue) INTERNAL: The message is passed to its reference class descriptor.void
preInsert
(WriteObjectQuery query) INTERNAL: The message is passed to its reference class descriptor.void
preInsertAttributeValue
(WriteObjectQuery query, Object attributeValue) INTERNAL: The message is passed to its reference class descriptor.void
preUpdate
(WriteObjectQuery query) INTERNAL: The message is passed to its reference class descriptor.void
preUpdateAttributeValue
(WriteObjectQuery query, Object attributeValue) INTERNAL: The message is passed to its reference class descriptor.void
remoteInitialization
(DistributedSession session) INTERNAL: Once a descriptor is serialized to the remote session, all its mappings and reference descriptors are traversed.void
setReferenceClass
(Class<?> aClass) PUBLIC: This is a reference class whose instances this mapping will store in the domain objects.void
setReferenceClassName
(String aClassName) INTERNAL: Used by MW.protected void
setReferenceDescriptor
(ClassDescriptor aDescriptor) INTERNAL: Set the referenceDescriptor.void
updateChangeRecord
(Object sourceClone, Object newValue, Object oldValue, ObjectChangeSet objectChangeSet, UnitOfWorkImpl uow) INTERNAL: Either create a new change record or update the change record with the new value.boolean
verifyDelete
(Object object, AbstractSession session) INTERNAL: Return whether the specified object and all its components have been deleted.protected boolean
verifyDeleteOfAttributeValue
(Object attributeValue, AbstractSession session) INTERNAL: Return whether the specified object and all its components have been deleted.Methods inherited from class org.eclipse.persistence.mappings.DatabaseMapping
addUnconvertedProperty, buildBackupCloneForPartObject, buildChangeRecord, buildCloneForPartObject, buildContainerClone, buildObjectJoinExpression, buildObjectJoinExpression, buildShallowOriginalFromRow, calculateDeferredChanges, cascadeDiscoverAndPersistUnregisteredNewObjects, cascadePerformRemoveIfRequired, cascadePerformRemovePrivateOwnedObjectFromChangeSetIfRequired, cascadeRegisterNewIfRequired, clone, cloneFields, collectFields, collectQueryParameters, convertConverterClassNamesToClasses, createCloneValueHolder, derivesId, earlyPreDelete, extractNestedExpressions, extractNestedNonAggregateExpressions, fixRealObjectReferences, getAttributeAccessor, getAttributeClassification, getAttributeName, getAttributeValueFromObject, getContainerPolicy, getDerivedIdMapping, getDescriptor, getField, getFieldClassification, getFields, getGetMethodName, getMapsIdValue, getObjectCorrespondingTo, getOrderByNormalizedExpressions, getProperties, getProperty, getRealAttributeValueFromAttribute, getRealAttributeValueFromObject, getRealCollectionAttributeValueFromObject, getRelationshipPartner, getSelectFields, getSelectTables, getSetMethodName, getUnconvertedProperties, getValueFromRemoteValueHolder, getWeight, hasConstraintDependency, hasDependency, hasInverseConstraintDependency, hasMapsIdValue, hasRootExpressionThatShouldUseOuterJoin, hasUnconvertedProperties, instantiateAttribute, isAbstractColumnMapping, isAbstractCompositeCollectionMapping, isAbstractCompositeDirectCollectionMapping, isAbstractCompositeObjectMapping, isAbstractDirectMapping, isAggregateCollectionMapping, isAggregateObjectMapping, isAttributeValueFromObjectInstantiated, isCacheable, isCandidateForPrivateOwnedRemoval, isCascadedLockingSupported, isChangeTrackingSupported, isCloningRequired, isCollectionMapping, isDatabaseMapping, isDirectCollectionMapping, isDirectMapMapping, isDirectToFieldMapping, isDirectToXMLTypeMapping, isEISMapping, isElementCollectionMapping, isForeignReferenceMapping, isInAndOutSopObject, isInOnlySopObject, isInSopObject, isJoiningSupported, isJPAId, isLazy, isLockableMapping, isManyToManyMapping, isManyToOneMapping, isMapKeyMapping, isMultitenantPrimaryKeyMapping, isNestedTableMapping, isObjectReferenceMapping, isOneToManyMapping, isOneToOneMapping, isOptional, isOutOnlySopObject, isOutSopObject, isOwned, isPrimaryKeyMapping, isPrivateOwned, isReadOnly, isReferenceMapping, isRelationalMapping, isRemotelyInitialized, isStructureMapping, isTransformationMapping, isUnidirectionalOneToManyMapping, isUsingMethodAccess, isVariableOneToOneMapping, isWriteOnly, isXMLMapping, iterateOnRealAttributeValue, performDataModificationEvent, postCalculateChanges, postCalculateChangesOnDeleted, postInitialize, postInitializeSourceAndTargetExpressions, preInitialize, prepareCascadeLockingPolicy, readFromResultSetIntoObject, readFromRowIntoObject, readOnly, readWrite, recordPrivateOwnedRemovals, rehashFieldDependancies, remotelyInitialized, replaceValueHoldersIn, setAttributeAccessor, setAttributeName, setAttributeValueInObject, setChangeListener, setDerivedIdMapping, setDerivesId, setDescriptor, setFields, setGetMethodName, setIsCacheable, setIsInAndOutSopObject, setIsInSopObject, setIsJPAId, setIsLazy, setIsMapKeyMapping, setIsOptional, setIsOutSopObject, setIsPrimaryKeyMapping, setIsReadOnly, setMapsIdValue, setProperties, setProperty, setRealAttributeValueInObject, setSetMethodName, setWeight, simpleAddToCollectionChangeRecord, simpleRemoveFromCollectionChangeRecord, toString, updateCollectionChangeRecord, validateAfterInitialization, validateBeforeInitialization, valueFromObject, valueFromResultSet, valueFromRow, valueFromRow, writeFromAttributeIntoRow, writeFromObjectIntoRow, writeFromObjectIntoRowForShallowInsert, writeFromObjectIntoRowForShallowInsertWithChangeRecord, writeFromObjectIntoRowForUpdate, writeFromObjectIntoRowForUpdateAfterShallowInsert, writeFromObjectIntoRowForUpdateBeforeShallowDelete, writeFromObjectIntoRowForWhereClause, writeFromObjectIntoRowWithChangeRecord, writeInsertFieldsIntoRow, writeUpdateFieldsIntoRow
-
Field Details
-
referenceClass
Stores a reference class -
referenceClassName
-
referenceDescriptor
The descriptor of the reference class -
hasNestedIdentityReference
Indicates whether the mapping (or at least one of its nested mappings, at any nested depth) references an entity. To return true the mapping (or nested mapping) should be ForeignReferenceMapping with non-null and non-aggregate reference descriptor. Lazily initialized.
-
-
Constructor Details
-
AggregateMapping
protected AggregateMapping()Default constructor.
-
-
Method Details
-
buildAggregateDeleteQuery
protected DeleteObjectQuery buildAggregateDeleteQuery(DeleteObjectQuery sourceQuery, Object sourceAttributeValue) Make a copy of the sourceQuery for the attribute. -
buildAggregateModifyQuery
protected void buildAggregateModifyQuery(ObjectLevelModifyQuery sourceQuery, ObjectLevelModifyQuery aggregateQuery, Object sourceAttributeValue) Initialize the aggregate query with the settings from the source query. -
buildAggregateWriteQuery
protected WriteObjectQuery buildAggregateWriteQuery(WriteObjectQuery sourceQuery, Object sourceAttributeValue) Make a copy of the sourceQuery for the attribute. -
buildBackupClone
INTERNAL: Clone the attribute from the clone and assign it to the backup.- Specified by:
buildBackupClone
in classDatabaseMapping
- Parameters:
clone
- TODObackup
- TODOunitOfWork
- TODO
-
buildBackupClonePart
INTERNAL: Build and return a backup clone of the attribute. -
buildClone
public void buildClone(Object original, CacheKey cacheKey, Object clone, Integer refreshCascade, AbstractSession cloningSession) INTERNAL: Clone the attribute from the original and assign it to the clone.- Specified by:
buildClone
in classDatabaseMapping
- Parameters:
original
- TODOcacheKey
- TODOclone
- TODOrefreshCascade
- TODOcloningSession
- TODO
-
buildCloneFromRow
public void buildCloneFromRow(AbstractRecord databaseRow, JoinedAttributeManager joinManager, Object clone, CacheKey sharedCacheKey, ObjectBuildingQuery sourceQuery, UnitOfWorkImpl unitOfWork, AbstractSession executionSession) INTERNAL: A combination of readFromRowIntoObject and buildClone.buildClone assumes the attribute value exists on the original and can simply be copied.
readFromRowIntoObject assumes that one is building an original.
Both of the above assumptions are false in this method, and actually attempts to do both at the same time.
Extract value from the row and set the attribute to this value in the working copy clone. In order to bypass the shared cache when in transaction a UnitOfWork must be able to populate working copies directly from the row.
- Specified by:
buildCloneFromRow
in classDatabaseMapping
- Parameters:
databaseRow
- TODOjoinManager
- TODOclone
- TODOsharedCacheKey
- TODOsourceQuery
- TODOunitOfWork
- TODOexecutionSession
- TODO
-
buildClonePart
protected Object buildClonePart(Object original, Object clone, CacheKey cacheKey, Object attributeValue, Integer refreshCascade, AbstractSession cloningSession) INTERNAL: Build and return a clone of the attribute. -
buildClonePart
protected Object buildClonePart(Object attributeValue, Object clone, CacheKey parentCacheKey, Integer refreshCascade, AbstractSession cloningSession, boolean isNewObject) INTERNAL: * Build and return a clone of the attribute. -
buildCopy
INTERNAL: Copy of the attribute of the object. This is NOT used for unit of work but for templatizing an object.- Overrides:
buildCopy
in classDatabaseMapping
- Parameters:
copy
- TODOoriginal
- TODOgroup
- TODO
-
buildCopyOfAttributeValue
Copy of the attribute of the object. This is NOT used for unit of work but for templatizing an object. -
buildExpression
public Expression buildExpression(Object queryObject, QueryByExamplePolicy policy, Expression expressionBuilder, Map processedObjects, AbstractSession session) INTERNAL: In case Query By Example is used, this method generates an expression from a attribute value pair. Since this is an Aggregate mapping, a recursive call is made to the buildExpressionFromExample method of ObjectBuilder.- Overrides:
buildExpression
in classDatabaseMapping
- Parameters:
queryObject
- TODOpolicy
- TODOexpressionBuilder
- TODOprocessedObjects
- TODOsession
- TODO- Returns:
- TODO
-
buildNewMergeInstanceOf
INTERNAL: Build and return a new instance of the specified attribute. This will be populated by a merge. -
compareAttributeValues
protected boolean compareAttributeValues(Object attributeValue1, Object attributeValue2, AbstractSession session) INTERNAL: Compare the attributes. Return true if they are alike. -
compareForChange
public ChangeRecord compareForChange(Object clone, Object backup, ObjectChangeSet owner, AbstractSession session) INTERNAL: Compare the changes between two aggregates. Return a change record holding the changes.- Specified by:
compareForChange
in classDatabaseMapping
- Parameters:
clone
- TODObackup
- TODOowner
- TODOsession
- TODO- Returns:
- prototype.changeset.ChangeRecord TODO
-
compareObjects
INTERNAL: Compare the attributes belonging to this mapping for the objects.- Specified by:
compareObjects
in classDatabaseMapping
- Parameters:
firstObject
- TODOsecondObject
- TODOsession
- TODO- Returns:
- TODO
-
convertClassNamesToClasses
INTERNAL: Convert all the class-name-based settings in this mapping to actual class-based settings. This method is used when converting a project that has been built with class names to a project with classes.- Overrides:
convertClassNamesToClasses
in classDatabaseMapping
- Parameters:
classLoader
- TODO
-
executeEvent
INTERNAL: Execute a descriptor event for the specified event code. -
fixAttributeValue
protected void fixAttributeValue(Object attributeValue, Map<Object, ObjectDescriptor> objectDescriptors, Map<Object, Object> processedObjects, ObjectLevelReadQuery query, DistributedSession session) INTERNAL: An object has been serialized from the server to the remote client. Replace the transient attributes of the remote value holders with client-side objects. -
fixObjectReferences
public void fixObjectReferences(Object object, Map<Object, ObjectDescriptor> objectDescriptors, Map<Object, Object> processedObjects, ObjectLevelReadQuery query, DistributedSession session) INTERNAL: An object has been serialized from the server to the remote client. Replace the transient attributes of the remote value holders with client-side objects.- Specified by:
fixObjectReferences
in classDatabaseMapping
- Parameters:
object
- TODOobjectDescriptors
- TODOprocessedObjects
- TODOquery
- TODOsession
- TODO
-
getAttributeValueFromBackupClone
Return the appropriate attribute value. This method is a hack to allow the aggregate collection subclass to override.... -
getObjectBuilderForClass
Convenience method -
getObjectBuilder
Convenience method -
getQueryManager
Convenience method -
getReferenceClass
PUBLIC: Returns the reference class -
getReferenceClassName
INTERNAL: Used by MW. -
getReferenceDescriptor
INTERNAL: Return the referenceDescriptor. This is a descriptor which is associated with the reference class. NOTE: If you are looking for the descriptor for a specific aggregate object, use #getReferenceDescriptor(Object). This will ensure you get the right descriptor if the object's descriptor is part of an inheritance tree.- Overrides:
getReferenceDescriptor
in classDatabaseMapping
- Returns:
- TODO
-
getReferenceDescriptor
INTERNAL: For inheritance purposes. -
getReferenceDescriptor
Convenience method -
hasNestedIdentityReference
public boolean hasNestedIdentityReference()INTERNAL: Indicates whether the mapping (or at least one of its nested mappings, at any nested depth) references an entity. To return true the mapping (or nested mapping) should be ForeignReferenceMapping with non-null and non-aggregate reference descriptor.- Overrides:
hasNestedIdentityReference
in classDatabaseMapping
-
initialize
INTERNAL: Initialize the reference descriptor.- Overrides:
initialize
in classDatabaseMapping
- Throws:
DescriptorException
-
isAggregateMapping
public boolean isAggregateMapping()INTERNAL: Related mapping should implement this method to return true.- Overrides:
isAggregateMapping
in classDatabaseMapping
-
iterate
INTERNAL: Iterate on the appropriate attribute value.- Specified by:
iterate
in classDatabaseMapping
-
iterateOnAttributeValue
Iterate on the specified attribute value. -
load
public void load(Object object, AttributeItem item, AbstractSession session, boolean fromFetchGroup) Force instantiation of the load group.- Overrides:
load
in classDatabaseMapping
-
loadAll
Force instantiation of all indirections.- Overrides:
loadAll
in classDatabaseMapping
-
mergeAttributeValue
protected void mergeAttributeValue(Object targetAttributeValue, boolean isTargetUnInitialized, Object sourceAttributeValue, MergeManager mergeManager, AbstractSession targetSession) Merge the attribute values. -
mergeChangesIntoObject
public void mergeChangesIntoObject(Object target, ChangeRecord changeRecord, Object source, MergeManager mergeManager, AbstractSession targetSession) INTERNAL: Merge changes from the source to the target object. With aggregates the merge must cascade to the object changes for the aggregate object because aggregate objects have no identity outside of themselves. The actual aggregate object does not need to be replaced, because even if the clone references another aggregate it appears the same to TopLink- Specified by:
mergeChangesIntoObject
in classDatabaseMapping
-
mergeIntoObject
public void mergeIntoObject(Object target, boolean isTargetUnInitialized, Object source, MergeManager mergeManager, AbstractSession targetSession) INTERNAL: Merge changes from the source to the target object. This merge is only called when a changeSet for the target does not exist or the target is uninitialized- Specified by:
mergeIntoObject
in classDatabaseMapping
-
postDelete
INTERNAL: The message is passed to its reference class descriptor.- Overrides:
postDelete
in classDatabaseMapping
- Throws:
DatabaseException
OptimisticLockException
-
postDeleteAttributeValue
public void postDeleteAttributeValue(DeleteObjectQuery query, Object attributeValue) throws DatabaseException, OptimisticLockException INTERNAL: The message is passed to its reference class descriptor. -
postInsert
INTERNAL: The message is passed to its reference class descriptor.- Overrides:
postInsert
in classDatabaseMapping
- Throws:
DatabaseException
OptimisticLockException
-
postInsertAttributeValue
public void postInsertAttributeValue(WriteObjectQuery query, Object attributeValue) throws DatabaseException, OptimisticLockException INTERNAL: The message is passed to its reference class descriptor. -
postUpdate
INTERNAL: The message is passed to its reference class descriptor.- Overrides:
postUpdate
in classDatabaseMapping
- Throws:
DatabaseException
OptimisticLockException
-
postUpdateAttributeValue
public void postUpdateAttributeValue(WriteObjectQuery query, Object attributeValue) throws DatabaseException, OptimisticLockException INTERNAL: The message is passed to its reference class descriptor. -
preDelete
INTERNAL: The message is passed to its reference class descriptor.- Overrides:
preDelete
in classDatabaseMapping
- Throws:
DatabaseException
OptimisticLockException
-
preDeleteAttributeValue
public void preDeleteAttributeValue(DeleteObjectQuery query, Object attributeValue) throws DatabaseException, OptimisticLockException INTERNAL: The message is passed to its reference class descriptor. -
preInsert
INTERNAL: The message is passed to its reference class descriptor.- Overrides:
preInsert
in classDatabaseMapping
- Throws:
DatabaseException
OptimisticLockException
-
preInsertAttributeValue
public void preInsertAttributeValue(WriteObjectQuery query, Object attributeValue) throws DatabaseException, OptimisticLockException INTERNAL: The message is passed to its reference class descriptor. -
preUpdate
INTERNAL: The message is passed to its reference class descriptor.- Overrides:
preUpdate
in classDatabaseMapping
- Throws:
DatabaseException
OptimisticLockException
-
preUpdateAttributeValue
public void preUpdateAttributeValue(WriteObjectQuery query, Object attributeValue) throws DatabaseException, OptimisticLockException INTERNAL: The message is passed to its reference class descriptor. -
remoteInitialization
INTERNAL: Once a descriptor is serialized to the remote session, all its mappings and reference descriptors are traversed. Usually the mappings are initialized and the serialized reference descriptors are replaced with local descriptors if they already exist in the remote session.- Overrides:
remoteInitialization
in classDatabaseMapping
-
setReferenceClass
PUBLIC: This is a reference class whose instances this mapping will store in the domain objects. -
setReferenceClassName
INTERNAL: Used by MW. -
setReferenceDescriptor
INTERNAL: Set the referenceDescriptor. This is a descriptor which is associated with the reference class. -
updateChangeRecord
public void updateChangeRecord(Object sourceClone, Object newValue, Object oldValue, ObjectChangeSet objectChangeSet, UnitOfWorkImpl uow) throws DescriptorException INTERNAL: Either create a new change record or update the change record with the new value. This is used by attribute change tracking.- Overrides:
updateChangeRecord
in classDatabaseMapping
- Throws:
DescriptorException
-
verifyDelete
INTERNAL: Return whether the specified object and all its components have been deleted.- Overrides:
verifyDelete
in classDatabaseMapping
- Throws:
DatabaseException
-
verifyDeleteOfAttributeValue
protected boolean verifyDeleteOfAttributeValue(Object attributeValue, AbstractSession session) throws DatabaseException INTERNAL: Return whether the specified object and all its components have been deleted.- Throws:
DatabaseException
-