public class ProtectedValueHolder extends DatabaseValueHolder implements WrappingValueHolder
Purpose: provides a value holder type that can be used in Protected instances of Entities. Similar to UnitOfWork Value Holder it wraps the original cache version.
shouldToStringInstantiate
Constructor and Description |
---|
ProtectedValueHolder(ValueHolderInterface attributeValue,
DatabaseMapping mapping,
AbstractSession cloningSession) |
Modifier and Type | Method and Description |
---|---|
ValueHolderInterface |
getWrappedValueHolder()
Returns the valueholder that is wrapped by this ValueHolder
|
java.lang.Object |
instantiateForUnitOfWorkValueHolder(UnitOfWorkValueHolder unitOfWorkValueHolder)
Triggers UnitOfWork valueholders directly without triggering the wrapped
valueholder (this).
|
boolean |
isPessimisticLockingValueHolder()
Answers if this valueholder is a pessimistic locking one.
|
clone, getRow, getSession, getValue, getValue, isCoordinatedWithProperty, isEasilyInstantiated, isInstantiated, isNewlyWeavedValueHolder, isSerializedRemoteUnitOfWorkValueHolder, postInstantiate, privilegedSetValue, releaseWrappedValueHolder, setInstantiated, setIsCoordinatedWithProperty, setIsNewlyWeavedValueHolder, setRow, setSession, setUninstantiated, setValue, shouldAllowInstantiationDeferral, toString
public ProtectedValueHolder(ValueHolderInterface attributeValue, DatabaseMapping mapping, AbstractSession cloningSession)
public java.lang.Object instantiateForUnitOfWorkValueHolder(UnitOfWorkValueHolder unitOfWorkValueHolder)
DatabaseValueHolder
When in transaction and/or for pessimistic locking the UnitOfWorkValueHolder needs to be triggered directly without triggering the wrapped valueholder. However only the wrapped valueholder knows how to trigger the indirection, i.e. it may be a batchValueHolder, and it stores all the info like the row and the query. Note: Implementations of this method are not necessarily thread-safe. They must be used in a synchronized manner
instantiateForUnitOfWorkValueHolder
in class DatabaseValueHolder
public boolean isPessimisticLockingValueHolder()
DatabaseValueHolder
isPessimisticLockingValueHolder
in class DatabaseValueHolder
public ValueHolderInterface getWrappedValueHolder()
WrappingValueHolder
getWrappedValueHolder
in interface WrappingValueHolder
getWrappedValueHolder
in class DatabaseValueHolder
EclipseLink 2.6.3, "build v20160428-59c81c5" API Reference