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, 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

    Constructors
    Constructor
    Description
    EISOneToManyQueryBasedValueHolder(EISOneToManyMapping mapping, ReadQuery query, org.eclipse.persistence.internal.sessions.AbstractRecord sourceRow, org.eclipse.persistence.internal.sessions.AbstractSession session)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected T
    instantiate(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, 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

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • 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.QueryBasedValueHolder
      Instantiate the object by executing the query on the session.
      Overrides:
      instantiate in class org.eclipse.persistence.internal.indirection.QueryBasedValueHolder<T>
      Throws:
      DatabaseException