Class UnitOfWorkTransformerValueHolder
- java.lang.Object
-
- org.eclipse.persistence.internal.indirection.DatabaseValueHolder
-
- org.eclipse.persistence.internal.indirection.UnitOfWorkValueHolder
-
- org.eclipse.persistence.internal.indirection.UnitOfWorkTransformerValueHolder
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,ValueHolderInterface,WeavedAttributeValueHolderInterface,WrappingValueHolder
public class UnitOfWorkTransformerValueHolder extends UnitOfWorkValueHolder
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 java.lang.ObjectcloneOfObjectprotected java.lang.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 attributeValue, java.lang.Object original, java.lang.Object clone, AbstractTransformationMapping mapping, UnitOfWorkImpl unitOfWork)protectedUnitOfWorkTransformerValueHolder(ValueHolderInterface attributeValue, java.lang.Object clone, DatabaseMapping mapping, UnitOfWorkImpl unitOfWork)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.ObjectbuildBackupCloneFor(java.lang.Object cloneAttributeValue)Backup the clone attribute value.java.lang.ObjectbuildCloneFor(java.lang.Object originalAttributeValue)Clone the original attribute value.protected java.lang.ObjectgetCloneOfObject()protected java.lang.ObjectgetObject()voidsetValue(java.lang.Object 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 attributeValue, java.lang.Object original, java.lang.Object clone, AbstractTransformationMapping mapping, UnitOfWorkImpl unitOfWork)
-
UnitOfWorkTransformerValueHolder
protected UnitOfWorkTransformerValueHolder(ValueHolderInterface attributeValue, java.lang.Object clone, DatabaseMapping mapping, UnitOfWorkImpl unitOfWork)
-
-
Method Detail
-
buildBackupCloneFor
protected java.lang.Object buildBackupCloneFor(java.lang.Object cloneAttributeValue)
Backup the clone attribute value.- Specified by:
buildBackupCloneForin classUnitOfWorkValueHolder
-
buildCloneFor
public java.lang.Object buildCloneFor(java.lang.Object originalAttributeValue)
Clone the original attribute value.- Specified by:
buildCloneForin classUnitOfWorkValueHolder
-
getCloneOfObject
protected java.lang.Object getCloneOfObject()
-
getObject
protected java.lang.Object getObject()
-
setValue
public void setValue(java.lang.Object theValue)
Ensure that the backup value holder is populated.- Specified by:
setValuein interfaceValueHolderInterface- Overrides:
setValuein classDatabaseValueHolder
-
-