public class TransformerBasedValueHolder extends DatabaseValueHolder
shouldToStringInstantiate| Constructor and Description |
|---|
TransformerBasedValueHolder(AttributeTransformer theTransformer,
java.lang.Object theObject,
AbstractRecord theRow,
AbstractSession theSession)
Initialize the method-based value holder.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
instantiateForUnitOfWorkValueHolder(UnitOfWorkValueHolder unitOfWorkValueHolder)
Triggers UnitOfWork valueholders directly without triggering the wrapped
valueholder (this).
|
boolean |
isPessimisticLockingValueHolder()
INTERNAL:
Answers if this valueholder is a pessimistic locking one.
|
clone, getRow, getSession, getValue, getValue, getWrappedValueHolder, isCoordinatedWithProperty, isEasilyInstantiated, isInstantiated, isNewlyWeavedValueHolder, isSerializedRemoteUnitOfWorkValueHolder, postInstantiate, privilegedSetValue, releaseWrappedValueHolder, setInstantiated, setIsCoordinatedWithProperty, setIsNewlyWeavedValueHolder, setRow, setSession, setUninstantiated, setValue, shouldAllowInstantiationDeferral, toStringpublic TransformerBasedValueHolder(AttributeTransformer theTransformer, java.lang.Object theObject, AbstractRecord theRow, AbstractSession theSession)
theMethod - The method that returns the object when executed.object - the Object which owns this attribute.theRow - The row representation of the object.theSession - The session to the database that stores the object.public java.lang.Object instantiateForUnitOfWorkValueHolder(UnitOfWorkValueHolder unitOfWorkValueHolder)
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: This method is not thread-safe. It must be used in a synchronized manner
instantiateForUnitOfWorkValueHolder in class DatabaseValueHolderpublic boolean isPessimisticLockingValueHolder()
isPessimisticLockingValueHolder in class DatabaseValueHolderEclipseLink 2.6.3, "build v20160428-59c81c5" API Reference