Class ArrayInitializer
- 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.ArrayInitializer
-
- All Implemented Interfaces:
BiConsumer<AbstractImmediateCollectionInitializer.ImmediateCollectionInitializerData,List<Object>>
,CollectionInitializer<AbstractImmediateCollectionInitializer.ImmediateCollectionInitializerData>
,Initializer<AbstractImmediateCollectionInitializer.ImmediateCollectionInitializerData>
,InitializerParent<AbstractImmediateCollectionInitializer.ImmediateCollectionInitializerData>
public class ArrayInitializer extends AbstractImmediateCollectionInitializer<AbstractImmediateCollectionInitializer.ImmediateCollectionInitializerData>
-
-
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 ArrayInitializer(NavigablePath navigablePath, PluralAttributeMapping arrayDescriptor, InitializerParent<?> parent, LockMode lockMode, DomainResult<?> collectionKeyResult, DomainResult<?> collectionValueKeyResult, boolean isResultInitializer, AssemblerCreationState creationState, Fetch listIndexFetch, Fetch elementFetch)
-
Method Summary
-
Methods inherited from class org.hibernate.sql.results.graph.collection.internal.AbstractImmediateCollectionInitializer
accept, createInitializerData, hasLazySubInitializers, initializeInstance, initializeShallowCached, resolveFromPreviousRow, resolveInstance, resolveInstance, resolveKey, resolveState, setMissing, takeResponsibility
-
Methods inherited from class org.hibernate.sql.results.graph.collection.internal.AbstractCollectionInitializer
getCollectionAttributeMapping, 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
-
ArrayInitializer
public ArrayInitializer(NavigablePath navigablePath, PluralAttributeMapping arrayDescriptor, InitializerParent<?> parent, LockMode lockMode, DomainResult<?> collectionKeyResult, DomainResult<?> collectionValueKeyResult, boolean isResultInitializer, AssemblerCreationState creationState, Fetch listIndexFetch, Fetch elementFetch)
-
-
Method Detail
-
forEachSubInitializer
protected void forEachSubInitializer(BiConsumer<Initializer<?>,RowProcessingState> consumer, InitializerData data)
-
getCollectionInstance
public @Nullable PersistentArrayHolder<?> getCollectionInstance(AbstractImmediateCollectionInitializer.ImmediateCollectionInitializerData data)
-
readCollectionRow
protected void readCollectionRow(AbstractImmediateCollectionInitializer.ImmediateCollectionInitializerData data, List<Object> loadingState)
-
initializeInstanceFromParent
public void initializeInstanceFromParent(Object parentInstance, AbstractImmediateCollectionInitializer.ImmediateCollectionInitializerData data)
Description copied from interface:Initializer
Step 3.1 - Initialize the state of the instance as extracted from the given parentInstance. Extraction can be done with theInitializer.getInitializedPart()
. Initializers are supposed to recursively call this method for sub-initializers. This alternative initialization protocol is used for shallow query cache hits, in which case there is no data available in theJdbcValuesCacheHit
to initialize potentially lazy associations.- Specified by:
initializeInstanceFromParent
in interfaceInitializer<AbstractImmediateCollectionInitializer.ImmediateCollectionInitializerData>
- Overrides:
initializeInstanceFromParent
in classAbstractImmediateCollectionInitializer<AbstractImmediateCollectionInitializer.ImmediateCollectionInitializerData>
-
initializeSubInstancesFromParent
protected void initializeSubInstancesFromParent(AbstractImmediateCollectionInitializer.ImmediateCollectionInitializerData data)
-
resolveInstanceSubInitializers
protected void resolveInstanceSubInitializers(AbstractImmediateCollectionInitializer.ImmediateCollectionInitializerData data)
-
getIndexAssembler
public DomainResultAssembler<?> getIndexAssembler()
-
getElementAssembler
public DomainResultAssembler<?> getElementAssembler()
-
-