Module eclipselink
Class EISOneToManyQueryBasedValueHolder<T>
java.lang.Object
org.eclipse.persistence.internal.indirection.DatabaseValueHolder<T>
org.eclipse.persistence.internal.indirection.QueryBasedValueHolder<T>
org.eclipse.persistence.eis.mappings.EISOneToManyQueryBasedValueHolder<T>
- All Implemented Interfaces:
Serializable,Cloneable,ValueHolderInterface<T>,WeavedAttributeValueHolderInterface<T>
public class EISOneToManyQueryBasedValueHolder<T>
extends org.eclipse.persistence.internal.indirection.QueryBasedValueHolder<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, sourceObjectFields inherited from class org.eclipse.persistence.internal.indirection.DatabaseValueHolder
isCoordinatedWithProperty, isInstantiated, row, session, valueFields inherited from interface org.eclipse.persistence.indirection.ValueHolderInterface
shouldToStringInstantiate -
Constructor Summary
ConstructorsConstructorDescriptionEISOneToManyQueryBasedValueHolder(EISOneToManyMapping mapping, ReadQuery query, org.eclipse.persistence.internal.sessions.AbstractRecord sourceRow, org.eclipse.persistence.internal.sessions.AbstractSession session) -
Method Summary
Modifier and TypeMethodDescriptionprotected Tinstantiate(org.eclipse.persistence.internal.sessions.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, setSourceObjectMethods 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, org.eclipse.persistence.internal.sessions.AbstractRecord sourceRow, org.eclipse.persistence.internal.sessions.AbstractSession session)
-
-
Method Details
-
instantiate
protected T instantiate(org.eclipse.persistence.internal.sessions.AbstractSession session) throws DatabaseException Description copied from class:org.eclipse.persistence.internal.indirection.QueryBasedValueHolderInstantiate the object by executing the query on the session.- Overrides:
instantiatein classorg.eclipse.persistence.internal.indirection.QueryBasedValueHolder<T>- Throws:
DatabaseException
-