Top Fields Constructors Methods
org.hibernate.sql.results.graph.collection.internal

public Class SelectEagerCollectionInitializer

extends AbstractCollectionInitializer
Class Inheritance
Imports
org.hibernate.internal.log.LoggingHelper, org.hibernate.metamodel.mapping.PluralAttributeMapping, org.hibernate.spi.NavigablePath, org.hibernate.sql.results.graph.DomainResultAssembler, .FetchParentAccess, org.hibernate.sql.results.jdbc.spi.RowProcessingState

Author
Andrea Boriero

Field Summary

Inherited from org.hibernate.sql.results.graph.collection.internal.AbstractCollectionInitializer:
collectionAttributeMappingcollectionInstancecollectionKeycollectionKeyResultAssemblerparentAccess

Constructor Summary

AccessConstructor and Description
public
SelectEagerCollectionInitializer(NavigablePath fetchedPath, PluralAttributeMapping fetchedMapping, FetchParentAccess parentAccess, DomainResultAssembler<?> collectionKeyResultAssembler)

Method Summary

Modifier and TypeMethod and Description
public void
public void
initializeInstance(RowProcessingState rowProcessingState)

Implements org.hibernate.sql.results.graph.Initializer.initializeInstance.

Step 3 - Initialize the state of the instance resolved in resolveInstance from the current row values.
public void
resolveInstance(RowProcessingState rowProcessingState)

Implements org.hibernate.sql.results.graph.Initializer.resolveInstance.

Step 2 - Using the key resolved in resolveKey, resolve the instance (of the thing initialized) to use for the current row.
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from org.hibernate.sql.results.graph.collection.internal.AbstractCollectionInitializer:
getCollectionAttributeMappinggetCollectionInstancegetInitializedPartgetNavigablePathgetParentAccessresolveCollectionKeyresolveInstanceresolveKey

Constructor Detail

SelectEagerCollectionInitializerback to summary
public SelectEagerCollectionInitializer(NavigablePath fetchedPath, PluralAttributeMapping fetchedMapping, FetchParentAccess parentAccess, DomainResultAssembler<?> collectionKeyResultAssembler)

Method Detail

finishUpRowback to summary
public void finishUpRow(RowProcessingState rowProcessingState)

Overrides org.hibernate.sql.results.graph.collection.internal.AbstractCollectionInitializer.finishUpRow.

Implements org.hibernate.sql.results.graph.Initializer.finishUpRow.

Doc from org.hibernate.sql.results.graph.Initializer.finishUpRow.

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.

Annotations
@Override
initializeInstanceback to summary
public void initializeInstance(RowProcessingState rowProcessingState)

Implements org.hibernate.sql.results.graph.Initializer.initializeInstance.

Doc from org.hibernate.sql.results.graph.Initializer.initializeInstance.

Step 3 - Initialize the state of the instance resolved in resolveInstance from the current row values. All resolved state for the current row is injected into the resolved instance

Annotations
@Override
resolveInstanceback to summary
public void resolveInstance(RowProcessingState rowProcessingState)

Implements org.hibernate.sql.results.graph.Initializer.resolveInstance.

Doc from org.hibernate.sql.results.graph.Initializer.resolveInstance.

Step 2 - Using the key resolved in resolveKey, 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 todo (6.0) : much of the various implementations of this are similar enough to handle in a common base implementation (templating?) things like resolving as managed (Session cache), from second-level cache, from LoadContext, etc..

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override