Module org.eclipse.persistence.core
Class UnitOfWorkTransformerValueHolder<T>
java.lang.Object
org.eclipse.persistence.internal.indirection.DatabaseValueHolder<T>
org.eclipse.persistence.internal.indirection.UnitOfWorkValueHolder<T>
org.eclipse.persistence.internal.indirection.UnitOfWorkTransformerValueHolder<T>
- All Implemented Interfaces:
Serializable,Cloneable,ValueHolderInterface<T>,WeavedAttributeValueHolderInterface<T>,WrappingValueHolder<T>
UnitOfWorkTransformerValueHolder wraps a database-stored object and
implements behavior to access it. The object is read from
the database by invoking a user-specified transformer object.
This value holder is used only in the unit of work.
Most of the methods ignore the actual attribute values and are
simply used to trigger instantiation.
- See Also:
-
Field Summary
FieldsFields inherited from class org.eclipse.persistence.internal.indirection.UnitOfWorkValueHolder
backupValueHolder, mapping, relationshipSourceObject, remoteUnitOfWork, sourceAttributeName, sourceObject, wrappedValueHolder, wrappedValueHolderRemoteIDFields inherited from class org.eclipse.persistence.internal.indirection.DatabaseValueHolder
isCoordinatedWithProperty, isInstantiated, row, session, valueFields inherited from interface org.eclipse.persistence.indirection.ValueHolderInterface
shouldToStringInstantiate -
Constructor Summary
ConstructorsModifierConstructorDescriptionUnitOfWorkTransformerValueHolder(ValueHolderInterface<T> attributeValue, Object original, Object clone, AbstractTransformationMapping mapping, UnitOfWorkImpl unitOfWork) protectedUnitOfWorkTransformerValueHolder(ValueHolderInterface<T> attributeValue, Object clone, DatabaseMapping mapping, UnitOfWorkImpl unitOfWork) -
Method Summary
Modifier and TypeMethodDescriptionprotected ObjectbuildBackupCloneFor(Object cloneAttributeValue) Backup the clone attribute value.buildCloneFor(Object originalAttributeValue) Clone the original attribute value.protected Objectprotected ObjectvoidEnsure that the backup value holder is populated.Methods inherited from class org.eclipse.persistence.internal.indirection.UnitOfWorkValueHolder
getBackupValueHolder, getMapping, getRelationshipSourceObject, getRemoteUnitOfWork, getSourceAttributeName, getSourceObject, getUnitOfWork, getValueFromServerObject, getWrappedValueHolder, getWrappedValueHolderRemoteID, instantiate, instantiateForUnitOfWorkValueHolder, instantiateImpl, isEasilyInstantiated, isPessimisticLockingValueHolder, isSerializedRemoteUnitOfWorkValueHolder, releaseWrappedValueHolder, resetFields, setBackupValueHolder, setMapping, setRelationshipSourceObject, setRemoteUnitOfWork, setSourceAttributeName, setSourceObject, setWrappedValueHolder, shouldAllowInstantiationDeferralMethods inherited from class org.eclipse.persistence.internal.indirection.DatabaseValueHolder
clone, getRow, getSession, getValue, getValue, isCoordinatedWithProperty, isInstantiated, isNewlyWeavedValueHolder, isTransactionalValueHolder, postInstantiate, privilegedSetValue, setInstantiated, setIsCoordinatedWithProperty, setIsNewlyWeavedValueHolder, setRow, setSession, setUninstantiated, toString
-
Field Details
-
cloneOfObject
-
object
-
-
Constructor Details
-
UnitOfWorkTransformerValueHolder
public UnitOfWorkTransformerValueHolder(ValueHolderInterface<T> attributeValue, Object original, Object clone, AbstractTransformationMapping mapping, UnitOfWorkImpl unitOfWork) -
UnitOfWorkTransformerValueHolder
protected UnitOfWorkTransformerValueHolder(ValueHolderInterface<T> attributeValue, Object clone, DatabaseMapping mapping, UnitOfWorkImpl unitOfWork)
-
-
Method Details
-
buildBackupCloneFor
Backup the clone attribute value.- Specified by:
buildBackupCloneForin classUnitOfWorkValueHolder<T>
-
buildCloneFor
Clone the original attribute value.- Specified by:
buildCloneForin classUnitOfWorkValueHolder<T>
-
getCloneOfObject
-
getObject
-
setValue
Ensure that the backup value holder is populated.- Specified by:
setValuein interfaceValueHolderInterface<T>- Overrides:
setValuein classDatabaseValueHolder<T>
-