Class BagInitializer
- java.lang.Object
-
- org.hibernate.sql.results.graph.internal.AbstractInitializer<Data>
-
- org.hibernate.sql.results.graph.collection.internal.AbstractCollectionInitializer<Data>
-
- org.hibernate.sql.results.graph.collection.internal.AbstractImmediateCollectionInitializer<AbstractImmediateCollectionInitializer.ImmediateCollectionInitializerData>
-
- org.hibernate.sql.results.graph.collection.internal.BagInitializer
-
- All Implemented Interfaces:
BiConsumer<AbstractImmediateCollectionInitializer.ImmediateCollectionInitializerData,List<Object>>
,CollectionInitializer<AbstractImmediateCollectionInitializer.ImmediateCollectionInitializerData>
,Initializer<AbstractImmediateCollectionInitializer.ImmediateCollectionInitializerData>
,InitializerParent<AbstractImmediateCollectionInitializer.ImmediateCollectionInitializerData>
public class BagInitializer extends AbstractImmediateCollectionInitializer<AbstractImmediateCollectionInitializer.ImmediateCollectionInitializerData>
Initializer for bothPersistentBag
andPersistentIdentifierBag
collections
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.hibernate.sql.results.graph.collection.internal.AbstractImmediateCollectionInitializer
AbstractImmediateCollectionInitializer.ImmediateCollectionInitializerData
-
Nested classes/interfaces inherited from class org.hibernate.sql.results.graph.collection.internal.AbstractCollectionInitializer
AbstractCollectionInitializer.CollectionInitializerData
-
Nested classes/interfaces inherited from interface org.hibernate.sql.results.graph.Initializer
Initializer.State
-
-
Field Summary
-
Fields inherited from class org.hibernate.sql.results.graph.collection.internal.AbstractImmediateCollectionInitializer
collectionValueKeyResultAssembler
-
Fields inherited from class org.hibernate.sql.results.graph.collection.internal.AbstractCollectionInitializer
collectionAttributeMapping, collectionKeyResultAssembler, collectionPath, isResultInitializer, keyTypeForEqualsHashCode, owningEntityInitializer, parent
-
Fields inherited from class org.hibernate.sql.results.graph.internal.AbstractInitializer
initializerId
-
Fields inherited from interface org.hibernate.sql.results.graph.Initializer
EMPTY_ARRAY
-
-
Constructor Summary
Constructors Constructor Description BagInitializer(NavigablePath navigablePath, PluralAttributeMapping bagDescriptor, InitializerParent<?> parent, LockMode lockMode, DomainResult<?> collectionKeyResult, DomainResult<?> collectionValueKeyResult, boolean isResultInitializer, AssemblerCreationState creationState, Fetch elementFetch, @Nullable Fetch collectionIdFetch)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
forEachSubInitializer(BiConsumer<Initializer<?>,RowProcessingState> consumer, InitializerData data)
DomainResultAssembler<?>
getElementAssembler()
DomainResultAssembler<?>
getIndexAssembler()
protected void
initializeSubInstancesFromParent(AbstractImmediateCollectionInitializer.ImmediateCollectionInitializerData data)
protected void
readCollectionRow(AbstractImmediateCollectionInitializer.ImmediateCollectionInitializerData data, List<Object> loadingState)
protected void
resolveInstanceSubInitializers(AbstractImmediateCollectionInitializer.ImmediateCollectionInitializerData data)
String
toString()
-
Methods inherited from class org.hibernate.sql.results.graph.collection.internal.AbstractImmediateCollectionInitializer
accept, createInitializerData, hasLazySubInitializers, initializeInstance, initializeInstanceFromParent, initializeShallowCached, resolveFromPreviousRow, resolveInstance, resolveInstance, resolveKey, resolveState, setMissing, takeResponsibility
-
Methods inherited from class org.hibernate.sql.results.graph.collection.internal.AbstractCollectionInitializer
getCollectionAttributeMapping, getCollectionInstance, getInitializedPart, getNavigablePath, getParent, isEager, isPartOfKey, isResultInitializer, resolveCollectionKey
-
Methods inherited from class org.hibernate.sql.results.graph.internal.AbstractInitializer
finishUpRow, getData, startLoading
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.function.BiConsumer
andThen
-
Methods inherited from interface org.hibernate.sql.results.graph.collection.CollectionInitializer
asCollectionInitializer, getCollectionInstance, getInitializingCollectionDescriptor, isCollectionInitializer
-
Methods inherited from interface org.hibernate.sql.results.graph.Initializer
asEmbeddableInitializer, asEntityInitializer, endLoading, endLoading, findOwningEntityInitializer, finishUpRow, finishUpRow, getData, getResolvedInstance, getResolvedInstance, initializeInstance, initializeInstanceFromParent, isEmbeddableInitializer, isEntityInitializer, isLazyCapable, resolveFromPreviousRow, resolveInstance, resolveInstance, resolveKey, resolveState, startLoading
-
-
-
-
Constructor Detail
-
BagInitializer
public BagInitializer(NavigablePath navigablePath, PluralAttributeMapping bagDescriptor, InitializerParent<?> parent, LockMode lockMode, DomainResult<?> collectionKeyResult, DomainResult<?> collectionValueKeyResult, boolean isResultInitializer, AssemblerCreationState creationState, Fetch elementFetch, @Nullable Fetch collectionIdFetch)
-
-
Method Detail
-
forEachSubInitializer
protected void forEachSubInitializer(BiConsumer<Initializer<?>,RowProcessingState> consumer, InitializerData data)
-
readCollectionRow
protected void readCollectionRow(AbstractImmediateCollectionInitializer.ImmediateCollectionInitializerData data, List<Object> loadingState)
-
initializeSubInstancesFromParent
protected void initializeSubInstancesFromParent(AbstractImmediateCollectionInitializer.ImmediateCollectionInitializerData data)
-
resolveInstanceSubInitializers
protected void resolveInstanceSubInitializers(AbstractImmediateCollectionInitializer.ImmediateCollectionInitializerData data)
-
getIndexAssembler
public DomainResultAssembler<?> getIndexAssembler()
-
getElementAssembler
public DomainResultAssembler<?> getElementAssembler()
-
-