Class SelectEagerCollectionInitializer
- java.lang.Object
-
- org.hibernate.sql.results.graph.collection.internal.AbstractCollectionInitializer
-
- org.hibernate.sql.results.graph.collection.internal.SelectEagerCollectionInitializer
-
- All Implemented Interfaces:
CollectionInitializer
,FetchParentAccess
,Initializer
public class SelectEagerCollectionInitializer extends AbstractCollectionInitializer
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.hibernate.sql.results.graph.collection.internal.AbstractCollectionInitializer
AbstractCollectionInitializer.State
-
-
Field Summary
-
Fields inherited from class org.hibernate.sql.results.graph.collection.internal.AbstractCollectionInitializer
collectionAttributeMapping, collectionInstance, collectionKey, collectionKeyResultAssembler, isResultInitializer, parentAccess, parentShallowCached, state
-
-
Constructor Summary
Constructors Constructor Description SelectEagerCollectionInitializer(NavigablePath fetchedPath, PluralAttributeMapping fetchedMapping, FetchParentAccess parentAccess, @Nullable DomainResult<?> collectionKeyResult, AssemblerCreationState creationState)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
finishUpRow(RowProcessingState rowProcessingState)
Lifecycle method called at the end of the current row processing.void
initializeInstance(RowProcessingState rowProcessingState)
Step 3 - Initialize the state of the instance resolved inInitializer.resolveInstance(org.hibernate.sql.results.jdbc.spi.RowProcessingState)
from the current row values.void
resolveInstance(RowProcessingState rowProcessingState)
Step 2 - Using the key resolved inInitializer.resolveKey(org.hibernate.sql.results.jdbc.spi.RowProcessingState)
, resolve the instance (of the thing initialized) to use for the current row.String
toString()
-
Methods inherited from class org.hibernate.sql.results.graph.collection.internal.AbstractCollectionInitializer
endLoading, findFirstEntityDescriptorAccess, getCollectionAttributeMapping, getCollectionInstance, getFetchParentAccess, getInitializedPart, getNavigablePath, getOwnedModelPartDeclaringType, getOwningParent, getParentKey, isPartOfKey, isResultInitializer, markShallowCached, registerResolutionListener, resolveCollectionKey, resolveInstance, resolveKey
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.hibernate.sql.results.graph.collection.CollectionInitializer
asCollectionInitializer, getInitializedInstance, getInitializingCollectionDescriptor, isCollectionInitializer
-
Methods inherited from interface org.hibernate.sql.results.graph.FetchParentAccess
findFirstEntityInitializer, shouldSkipInitializer
-
Methods inherited from interface org.hibernate.sql.results.graph.Initializer
asEmbeddableInitializer, asEntityInitializer, initializeInstanceFromParent, isEmbeddableInitializer, isEntityInitializer, startLoading
-
-
-
-
Constructor Detail
-
SelectEagerCollectionInitializer
public SelectEagerCollectionInitializer(NavigablePath fetchedPath, PluralAttributeMapping fetchedMapping, FetchParentAccess parentAccess, @Nullable DomainResult<?> collectionKeyResult, AssemblerCreationState creationState)
-
-
Method Detail
-
resolveInstance
public void resolveInstance(RowProcessingState rowProcessingState)
Description copied from interface:Initializer
Step 2 - Using the key resolved inInitializer.resolveKey(org.hibernate.sql.results.jdbc.spi.RowProcessingState)
, resolve the instance (of the thing initialized) to use for the current row. After this point, the initializer knows the entity/collection/component instance for the current row based on the resolved key
-
initializeInstance
public void initializeInstance(RowProcessingState rowProcessingState)
Description copied from interface:Initializer
Step 3 - Initialize the state of the instance resolved inInitializer.resolveInstance(org.hibernate.sql.results.jdbc.spi.RowProcessingState)
from the current row values. All resolved state for the current row is injected into the resolved instance
-
finishUpRow
public void finishUpRow(RowProcessingState rowProcessingState)
Description copied from interface:Initializer
Lifecycle 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:
finishUpRow
in interfaceInitializer
- Overrides:
finishUpRow
in classAbstractCollectionInitializer
-
-