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>
public class UnitOfWorkTransformerValueHolder<T> extends UnitOfWorkValueHolder<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.- Author:
- Sati
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected ObjectcloneOfObjectprotected Objectobject-
Fields inherited from class org.eclipse.persistence.internal.indirection.UnitOfWorkValueHolder
backupValueHolder, mapping, relationshipSourceObject, remoteUnitOfWork, sourceAttributeName, sourceObject, wrappedValueHolder, wrappedValueHolderRemoteID
-
Fields inherited from class org.eclipse.persistence.internal.indirection.DatabaseValueHolder
isCoordinatedWithProperty, isInstantiated, row, session, value
-
Fields inherited from interface org.eclipse.persistence.indirection.ValueHolderInterface
shouldToStringInstantiate
-
-
Constructor Summary
Constructors Modifier Constructor Description UnitOfWorkTransformerValueHolder(ValueHolderInterface<T> attributeValue, Object original, Object clone, AbstractTransformationMapping mapping, UnitOfWorkImpl unitOfWork)protectedUnitOfWorkTransformerValueHolder(ValueHolderInterface<T> attributeValue, Object clone, DatabaseMapping mapping, UnitOfWorkImpl unitOfWork)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ObjectbuildBackupCloneFor(Object cloneAttributeValue)Backup the clone attribute value.TbuildCloneFor(Object originalAttributeValue)Clone the original attribute value.protected ObjectgetCloneOfObject()protected ObjectgetObject()voidsetValue(T theValue)Ensure 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, shouldAllowInstantiationDeferral
-
Methods 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
-
-
-
-
Constructor Detail
-
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 Detail
-
buildBackupCloneFor
protected Object buildBackupCloneFor(Object cloneAttributeValue)
Backup the clone attribute value.- Specified by:
buildBackupCloneForin classUnitOfWorkValueHolder<T>
-
buildCloneFor
public T buildCloneFor(Object originalAttributeValue)
Clone the original attribute value.- Specified by:
buildCloneForin classUnitOfWorkValueHolder<T>
-
getCloneOfObject
protected Object getCloneOfObject()
-
getObject
protected Object getObject()
-
setValue
public void setValue(T theValue)
Ensure that the backup value holder is populated.- Specified by:
setValuein interfaceValueHolderInterface<T>- Overrides:
setValuein classDatabaseValueHolder<T>
-
-