Class AbstractCollectionInitializer
- java.lang.Object
-
- org.hibernate.sql.results.graph.collection.internal.AbstractCollectionInitializer
-
- All Implemented Interfaces:
CollectionInitializer,Initializer
- Direct Known Subclasses:
AbstractImmediateCollectionInitializer,DelayedCollectionInitializer,SelectEagerCollectionInitializer
public abstract class AbstractCollectionInitializer extends Object implements CollectionInitializer
Base support for CollectionInitializer implementations
-
-
Field Summary
Fields Modifier and Type Field Description protected PluralAttributeMappingcollectionAttributeMappingprotected PersistentCollection<?>collectionInstanceprotected CollectionKeycollectionKeyprotected DomainResultAssembler<?>collectionKeyResultAssemblerrefers to the collection's container value - which collection-key?protected FetchParentAccessparentAccess
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractCollectionInitializer(NavigablePath collectionPath, PluralAttributeMapping collectionAttributeMapping, FetchParentAccess parentAccess, DomainResultAssembler<?> collectionKeyResultAssembler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfinishUpRow(RowProcessingState rowProcessingState)Lifecycle method called at the end of the current row processing.PluralAttributeMappinggetCollectionAttributeMapping()PersistentCollection<?>getCollectionInstance()PluralAttributeMappinggetInitializedPart()NavigablePathgetNavigablePath()protected FetchParentAccessgetParentAccess()CollectionKeyresolveCollectionKey(RowProcessingState rowProcessingState)protected voidresolveInstance(RowProcessingState rowProcessingState, boolean isEager)voidresolveKey(RowProcessingState rowProcessingState)Step 1 - Resolve the key value for this initializer for the current row.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hibernate.sql.results.graph.collection.CollectionInitializer
endLoading, getInitializedInstance, getInitializingCollectionDescriptor, isCollectionInitializer
-
Methods inherited from interface org.hibernate.sql.results.graph.Initializer
asEmbeddableInitializer, asEntityInitializer, initializeInstance, isAttributeAssignableToConcreteDescriptor, isEmbeddableInitializer, isEntityInitializer, resolveInstance
-
-
-
-
Field Detail
-
collectionAttributeMapping
protected final PluralAttributeMapping collectionAttributeMapping
-
parentAccess
protected final FetchParentAccess parentAccess
-
collectionKeyResultAssembler
protected final DomainResultAssembler<?> collectionKeyResultAssembler
refers to the collection's container value - which collection-key?
-
collectionInstance
protected PersistentCollection<?> collectionInstance
-
collectionKey
protected CollectionKey collectionKey
-
-
Constructor Detail
-
AbstractCollectionInitializer
protected AbstractCollectionInitializer(NavigablePath collectionPath, PluralAttributeMapping collectionAttributeMapping, FetchParentAccess parentAccess, DomainResultAssembler<?> collectionKeyResultAssembler)
-
-
Method Detail
-
resolveKey
public void resolveKey(RowProcessingState rowProcessingState)
Description copied from interface:InitializerStep 1 - Resolve the key value for this initializer for the current row. After this point, the initializer knows the entity/collection/component key for the current row- Specified by:
resolveKeyin interfaceInitializer
-
resolveInstance
protected void resolveInstance(RowProcessingState rowProcessingState, boolean isEager)
-
getCollectionInstance
public PersistentCollection<?> getCollectionInstance()
- Specified by:
getCollectionInstancein interfaceCollectionInitializer
-
getNavigablePath
public NavigablePath getNavigablePath()
- Specified by:
getNavigablePathin interfaceInitializer
-
getCollectionAttributeMapping
public PluralAttributeMapping getCollectionAttributeMapping()
-
getInitializedPart
public PluralAttributeMapping getInitializedPart()
- Specified by:
getInitializedPartin interfaceCollectionInitializer- Specified by:
getInitializedPartin interfaceInitializer
-
getParentAccess
protected FetchParentAccess getParentAccess()
-
resolveCollectionKey
public CollectionKey resolveCollectionKey(RowProcessingState rowProcessingState)
- Specified by:
resolveCollectionKeyin interfaceCollectionInitializer
-
finishUpRow
public void finishUpRow(RowProcessingState rowProcessingState)
Description copied from interface:InitializerLifecycle method called at the end of the current row processing. Provides ability to complete processing from the current row and prepare for the next row.- Specified by:
finishUpRowin interfaceInitializer
-
-