public class BackupValueHolder extends DatabaseValueHolder
shouldToStringInstantiate| Constructor and Description |
|---|
BackupValueHolder(ValueHolderInterface unitOfWorkValueHolder) |
| Modifier and Type | Method and Description |
|---|---|
AbstractRecord |
getRow()
Return the row.
|
AbstractSession |
getSession()
Return the session.
|
ValueHolderInterface |
getUnitOfWorkValueHolder()
Return the original uow clone's value holder.
|
java.lang.Object |
instantiate()
If the original value holder was not instantiated,
then first instantiate it to obtain the backup value.
|
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, getValue, getValue, getWrappedValueHolder, isCoordinatedWithProperty, isEasilyInstantiated, isInstantiated, isNewlyWeavedValueHolder, isSerializedRemoteUnitOfWorkValueHolder, postInstantiate, privilegedSetValue, releaseWrappedValueHolder, setInstantiated, setIsCoordinatedWithProperty, setIsNewlyWeavedValueHolder, setRow, setSession, setUninstantiated, setValue, shouldAllowInstantiationDeferral, toStringpublic BackupValueHolder(ValueHolderInterface unitOfWorkValueHolder)
public boolean isPessimisticLockingValueHolder()
DatabaseValueHolderisPessimisticLockingValueHolder in class DatabaseValueHolderpublic java.lang.Object instantiateForUnitOfWorkValueHolder(UnitOfWorkValueHolder unitOfWorkValueHolder)
DatabaseValueHolderWhen 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 DatabaseValueHolderpublic AbstractRecord getRow()
DatabaseValueHoldergetRow in class DatabaseValueHolderpublic AbstractSession getSession()
DatabaseValueHoldergetSession in class DatabaseValueHolderpublic java.lang.Object instantiate()
public ValueHolderInterface getUnitOfWorkValueHolder()
EclipseLink 2.6.3, "build v20160428-59c81c5" API Reference