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

public abstract Class AbstractCollectionInitializer

extends Object
implements CollectionInitializer
Class Inheritance
All Implemented Interfaces
org.hibernate.sql.results.graph.collection.CollectionInitializer, org.hibernate.sql.results.graph.Initializer
Known Direct Subclasses
org.hibernate.sql.results.graph.collection.internal.AbstractImmediateCollectionInitializer, org.hibernate.sql.results.graph.collection.internal.DelayedCollectionInitializer, org.hibernate.sql.results.graph.collection.internal.SelectEagerCollectionInitializer
Imports
org.hibernate.collection.spi.CollectionSemantics, .PersistentCollection, org.hibernate.engine.spi.CollectionKey, .PersistenceContext, .SharedSessionContractImplementor, org.hibernate.internal.log.LoggingHelper, org.hibernate.metamodel.CollectionClassification, org.hibernate.metamodel.mapping.PluralAttributeMapping, org.hibernate.persister.collection.CollectionPersister, org.hibernate.spi.NavigablePath, org.hibernate.sql.results.graph.DomainResultAssembler, .FetchParentAccess, org.hibernate.sql.results.graph.collection.CollectionInitializer, .CollectionLoadingLogger, .LoadingCollectionEntry, org.hibernate.sql.results.graph.entity.EntityInitializer, org.hibernate.sql.results.jdbc.spi.RowProcessingState

Base support for CollectionInitializer implementations
Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
protected final PluralAttributeMapping
protected PersistentCollection<?>
protected CollectionKey
protected final DomainResultAssembler<?>
collectionKeyResultAssembler

refers to the collection's container value - which collection-key?

private final NavigablePath
protected final FetchParentAccess

Constructor Summary

AccessConstructor and Description
protected
AbstractCollectionInitializer(NavigablePath collectionPath, PluralAttributeMapping collectionAttributeMapping, FetchParentAccess parentAccess, DomainResultAssembler<?> collectionKeyResultAssembler)

Method Summary

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

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

Lifecycle method called at the end of the current row processing.
public PluralAttributeMapping
public PersistentCollection<?>
public PluralAttributeMapping
public NavigablePath
protected FetchParentAccess
public CollectionKey
protected void
resolveInstance(RowProcessingState rowProcessingState, boolean isEager)

public void
resolveKey(RowProcessingState rowProcessingState)

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

Step 1 - Resolve the key value for this initializer for the current row.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

collectionAttributeMappingback to summary
protected final PluralAttributeMapping collectionAttributeMapping
collectionInstanceback to summary
protected PersistentCollection<?> collectionInstance
collectionKeyback to summary
protected CollectionKey collectionKey
collectionKeyResultAssemblerback to summary
protected final DomainResultAssembler<?> collectionKeyResultAssembler

refers to the collection's container value - which collection-key?

collectionPathback to summary
private final NavigablePath collectionPath
parentAccessback to summary
protected final FetchParentAccess parentAccess

Constructor Detail

AbstractCollectionInitializerback to summary
protected AbstractCollectionInitializer(NavigablePath collectionPath, PluralAttributeMapping collectionAttributeMapping, FetchParentAccess parentAccess, DomainResultAssembler<?> collectionKeyResultAssembler)

Method Detail

finishUpRowback to summary
public void finishUpRow(RowProcessingState rowProcessingState)

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
getCollectionAttributeMappingback to summary
public PluralAttributeMapping getCollectionAttributeMapping()
getCollectionInstanceback to summary
public PersistentCollection<?> getCollectionInstance()

Implements org.hibernate.sql.results.graph.collection.CollectionInitializer.getCollectionInstance.

Annotations
@Override
getInitializedPartback to summary
public PluralAttributeMapping getInitializedPart()

Implements org.hibernate.sql.results.graph.collection.CollectionInitializer.getInitializedPart.

Annotations
@Override
getNavigablePathback to summary
public NavigablePath getNavigablePath()

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

Annotations
@Override
getParentAccessback to summary
protected FetchParentAccess getParentAccess()
resolveCollectionKeyback to summary
public CollectionKey resolveCollectionKey(RowProcessingState rowProcessingState)

Implements org.hibernate.sql.results.graph.collection.CollectionInitializer.resolveCollectionKey.

Annotations
@Override
resolveInstanceback to summary
protected void resolveInstance(RowProcessingState rowProcessingState, boolean isEager)
resolveKeyback to summary
public void resolveKey(RowProcessingState rowProcessingState)

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

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

Step 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

Annotations
@Override