Module org.eclipse.persistence.core
Class EISOneToManyQueryBasedValueHolder<T>
java.lang.Object
org.eclipse.persistence.internal.indirection.DatabaseValueHolder<T>
org.eclipse.persistence.internal.indirection.QueryBasedValueHolder<T>
org.eclipse.persistence.internal.indirection.EISOneToManyQueryBasedValueHolder<T>
- All Implemented Interfaces:
Serializable
,Cloneable
,ValueHolderInterface<T>
,WeavedAttributeValueHolderInterface<T>
Value holder used to defer an EIS 1-m mapping query.
For composite source foreign keys EIS 1-m's a query must be performed
for each primary key, so a different type of value holder is required.
- See Also:
-
Field Summary
Fields inherited from class org.eclipse.persistence.internal.indirection.QueryBasedValueHolder
query, refreshCascade, sourceObject
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
ConstructorDescriptionEISOneToManyQueryBasedValueHolder
(EISOneToManyMapping mapping, ReadQuery query, AbstractRecord sourceRow, AbstractSession session) -
Method Summary
Modifier and TypeMethodDescriptionprotected T
instantiate
(AbstractSession session) Instantiate the object by executing the query on the session.Methods inherited from class org.eclipse.persistence.internal.indirection.QueryBasedValueHolder
getQuery, getRefreshCascadePolicy, getValue, instantiate, instantiateForUnitOfWorkValueHolder, isPessimisticLockingValueHolder, postInstantiate, releaseWrappedValueHolder, resetFields, setQuery, setRefreshCascadePolicy, setSourceObject
Methods inherited from class org.eclipse.persistence.internal.indirection.DatabaseValueHolder
clone, getRow, getSession, getValue, getWrappedValueHolder, isCoordinatedWithProperty, isEasilyInstantiated, isInstantiated, isNewlyWeavedValueHolder, isSerializedRemoteUnitOfWorkValueHolder, isTransactionalValueHolder, privilegedSetValue, setInstantiated, setIsCoordinatedWithProperty, setIsNewlyWeavedValueHolder, setRow, setSession, setUninstantiated, setValue, shouldAllowInstantiationDeferral, toString
-
Constructor Details
-
EISOneToManyQueryBasedValueHolder
public EISOneToManyQueryBasedValueHolder(EISOneToManyMapping mapping, ReadQuery query, AbstractRecord sourceRow, AbstractSession session)
-
-
Method Details
-
instantiate
Description copied from class:QueryBasedValueHolder
Instantiate the object by executing the query on the session.- Overrides:
instantiate
in classQueryBasedValueHolder<T>
- Throws:
DatabaseException
-