Top Description Fields Constructors Methods
org.eclipse.persistence.internal.indirection

public Class UnitOfWorkTransformerValueHolder<T>

extends UnitOfWorkValueHolder<T>
Class Inheritance
Imports
org.eclipse.persistence.indirection.*, org.eclipse.persistence.internal.sessions.UnitOfWorkImpl, org.eclipse.persistence.mappings.DatabaseMapping, org.eclipse.persistence.mappings.foundation.AbstractTransformationMapping

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

Field Summary

Modifier and TypeField and Description
protected transient Object
protected transient Object
Inherited from org.eclipse.persistence.internal.indirection.UnitOfWorkValueHolder:
backupValueHoldermappingrelationshipSourceObjectremoteUnitOfWorksourceAttributeNamesourceObjectwrappedValueHolderwrappedValueHolderRemoteID

Constructor Summary

AccessConstructor and Description
public
protected

Method Summary

Modifier and TypeMethod and Description
protected Object
buildBackupCloneFor(Object cloneAttributeValue)

Implements abstract org.eclipse.persistence.internal.indirection.UnitOfWorkValueHolder.buildBackupCloneFor.

Backup the clone attribute value.
public T
buildCloneFor(Object originalAttributeValue)

Implements abstract org.eclipse.persistence.internal.indirection.UnitOfWorkValueHolder.buildCloneFor.

Clone the original attribute value.
protected Object
protected Object
public void
Inherited from org.eclipse.persistence.internal.indirection.UnitOfWorkValueHolder:
getBackupValueHoldergetMappinggetRelationshipSourceObjectgetRemoteUnitOfWorkgetSourceAttributeNamegetSourceObjectgetUnitOfWorkgetValueFromServerObjectgetWrappedValueHoldergetWrappedValueHolderRemoteIDinstantiateinstantiateForUnitOfWorkValueHolderinstantiateImplisEasilyInstantiatedisPessimisticLockingValueHolderisSerializedRemoteUnitOfWorkValueHolderreleaseWrappedValueHolderresetFieldssetBackupValueHoldersetMappingsetRelationshipSourceObjectsetRemoteUnitOfWorksetSourceAttributeNamesetSourceObjectsetWrappedValueHoldershouldAllowInstantiationDeferral

Field Detail

cloneOfObjectback to summary
protected transient Object cloneOfObject
objectback to summary
protected transient Object object

Constructor Detail

UnitOfWorkTransformerValueHolderback to summary
public UnitOfWorkTransformerValueHolder(ValueHolderInterface<T> attributeValue, Object original, Object clone, AbstractTransformationMapping mapping, UnitOfWorkImpl unitOfWork)
UnitOfWorkTransformerValueHolderback to summary
protected UnitOfWorkTransformerValueHolder(ValueHolderInterface<T> attributeValue, Object clone, DatabaseMapping mapping, UnitOfWorkImpl unitOfWork)

Method Detail

buildBackupCloneForback to summary
protected Object buildBackupCloneFor(Object cloneAttributeValue)

Implements abstract org.eclipse.persistence.internal.indirection.UnitOfWorkValueHolder.buildBackupCloneFor.

Backup the clone attribute value.

Annotations
@Override
buildCloneForback to summary
public T buildCloneFor(Object originalAttributeValue)

Implements abstract org.eclipse.persistence.internal.indirection.UnitOfWorkValueHolder.buildCloneFor.

Clone the original attribute value.

Annotations
@Override
@SuppressWarnings:unchecked
getCloneOfObjectback to summary
protected Object getCloneOfObject()
getObjectback to summary
protected Object getObject()
setValueback to summary
public void setValue(T theValue)

Overrides org.eclipse.persistence.internal.indirection.DatabaseValueHolder.setValue.

Implements org.eclipse.persistence.indirection.ValueHolderInterface.setValue.

Ensure that the backup value holder is populated.

Annotations
@Override