Class UnitOfWorkQueryValueHolder
- java.lang.Object
-
- org.eclipse.persistence.internal.indirection.DatabaseValueHolder
-
- org.eclipse.persistence.internal.indirection.UnitOfWorkValueHolder
-
- org.eclipse.persistence.internal.indirection.UnitOfWorkQueryValueHolder
-
- All Implemented Interfaces:
Serializable
,Cloneable
,ValueHolderInterface
,WeavedAttributeValueHolderInterface
,WrappingValueHolder
public class UnitOfWorkQueryValueHolder extends UnitOfWorkValueHolder
UnitOfWorkQueryValueHolder wraps a database-stored object and implements behavior to access it. The object is read from the database by invoking a user-specified query. This value holder is used only in the unit of work.- Author:
- Sati
- See Also:
- Serialized Form
-
-
Field Summary
-
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 protected
UnitOfWorkQueryValueHolder()
protected
UnitOfWorkQueryValueHolder(ValueHolderInterface attributeValue, Object clone, DatabaseMapping mapping, UnitOfWorkImpl unitOfWork)
UnitOfWorkQueryValueHolder(ValueHolderInterface attributeValue, Object clone, ForeignReferenceMapping mapping, AbstractRecord row, UnitOfWorkImpl unitOfWork)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Object
buildBackupCloneFor(Object cloneAttributeValue)
Backup the clone attribute value.Object
buildCloneFor(Object originalAttributeValue)
Clone the original attribute value.void
setValue(Object theValue)
Ensure that the backup value holder is populated.void
updateForeignReferenceRemove(Object value)
INTERNAL: Here we now must check for bi-directional relationship.void
updateForeignReferenceSet(Object value, Object oldValue)
INTERNAL: Here we now must check for bi-directional relationship.-
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
-
UnitOfWorkQueryValueHolder
protected UnitOfWorkQueryValueHolder()
-
UnitOfWorkQueryValueHolder
protected UnitOfWorkQueryValueHolder(ValueHolderInterface attributeValue, Object clone, DatabaseMapping mapping, UnitOfWorkImpl unitOfWork)
-
UnitOfWorkQueryValueHolder
public UnitOfWorkQueryValueHolder(ValueHolderInterface attributeValue, Object clone, ForeignReferenceMapping mapping, AbstractRecord row, UnitOfWorkImpl unitOfWork)
-
-
Method Detail
-
buildBackupCloneFor
protected Object buildBackupCloneFor(Object cloneAttributeValue)
Backup the clone attribute value.- Specified by:
buildBackupCloneFor
in classUnitOfWorkValueHolder
-
buildCloneFor
public Object buildCloneFor(Object originalAttributeValue)
Clone the original attribute value.- Specified by:
buildCloneFor
in classUnitOfWorkValueHolder
-
setValue
public void setValue(Object theValue)
Ensure that the backup value holder is populated.- Specified by:
setValue
in interfaceValueHolderInterface
- Overrides:
setValue
in classDatabaseValueHolder
-
updateForeignReferenceRemove
public void updateForeignReferenceRemove(Object value)
INTERNAL: Here we now must check for bi-directional relationship. If the mapping has a relationship partner then we must maintain the original relationship. We only worry about ObjectReferenceMappings as the collections mappings will be handled by transparentIndirection
-
updateForeignReferenceSet
public void updateForeignReferenceSet(Object value, Object oldValue)
INTERNAL: Here we now must check for bi-directional relationship. If the mapping has a relationship partner then we must maintain the original relationship. We only worry about ObjectReferenceMappings as the collections mappings will be handled by transparentIndirection
-
-