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:
java.io.Serializable,java.lang.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 protectedUnitOfWorkQueryValueHolder()protectedUnitOfWorkQueryValueHolder(ValueHolderInterface attributeValue, java.lang.Object clone, DatabaseMapping mapping, UnitOfWorkImpl unitOfWork)UnitOfWorkQueryValueHolder(ValueHolderInterface attributeValue, java.lang.Object clone, ForeignReferenceMapping mapping, AbstractRecord row, 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.voidsetValue(java.lang.Object theValue)Ensure that the backup value holder is populated.voidupdateForeignReferenceRemove(java.lang.Object value)INTERNAL: Here we now must check for bi-directional relationship.voidupdateForeignReferenceSet(java.lang.Object value, java.lang.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, java.lang.Object clone, DatabaseMapping mapping, UnitOfWorkImpl unitOfWork)
-
UnitOfWorkQueryValueHolder
public UnitOfWorkQueryValueHolder(ValueHolderInterface attributeValue, java.lang.Object clone, ForeignReferenceMapping mapping, AbstractRecord row, 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
-
setValue
public void setValue(java.lang.Object theValue)
Ensure that the backup value holder is populated.- Specified by:
setValuein interfaceValueHolderInterface- Overrides:
setValuein classDatabaseValueHolder
-
updateForeignReferenceRemove
public void updateForeignReferenceRemove(java.lang.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(java.lang.Object value, java.lang.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
-
-