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 PluralAttributeMapping
collectionAttributeMapping
protected PersistentCollection<?>
collectionInstance
protected CollectionKey
collectionKey
protected DomainResultAssembler<?>
collectionKeyResultAssembler
refers to the collection's container value - which collection-key?protected FetchParentAccess
parentAccess
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractCollectionInitializer(NavigablePath collectionPath, PluralAttributeMapping collectionAttributeMapping, FetchParentAccess parentAccess, DomainResultAssembler<?> collectionKeyResultAssembler)
-
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.PluralAttributeMapping
getCollectionAttributeMapping()
PersistentCollection<?>
getCollectionInstance()
PluralAttributeMapping
getInitializedPart()
NavigablePath
getNavigablePath()
protected FetchParentAccess
getParentAccess()
CollectionKey
resolveCollectionKey(RowProcessingState rowProcessingState)
protected void
resolveInstance(RowProcessingState rowProcessingState, boolean isEager)
void
resolveKey(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:Initializer
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- Specified by:
resolveKey
in interfaceInitializer
-
resolveInstance
protected void resolveInstance(RowProcessingState rowProcessingState, boolean isEager)
-
getCollectionInstance
public PersistentCollection<?> getCollectionInstance()
- Specified by:
getCollectionInstance
in interfaceCollectionInitializer
-
getNavigablePath
public NavigablePath getNavigablePath()
- Specified by:
getNavigablePath
in interfaceInitializer
-
getCollectionAttributeMapping
public PluralAttributeMapping getCollectionAttributeMapping()
-
getInitializedPart
public PluralAttributeMapping getInitializedPart()
- Specified by:
getInitializedPart
in interfaceCollectionInitializer
- Specified by:
getInitializedPart
in interfaceInitializer
-
getParentAccess
protected FetchParentAccess getParentAccess()
-
resolveCollectionKey
public CollectionKey resolveCollectionKey(RowProcessingState rowProcessingState)
- Specified by:
resolveCollectionKey
in interfaceCollectionInitializer
-
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
-
-