Class ArrayInitializer
- java.lang.Object
-
- org.hibernate.sql.results.graph.collection.internal.AbstractCollectionInitializer
-
- org.hibernate.sql.results.graph.collection.internal.AbstractImmediateCollectionInitializer
-
- org.hibernate.sql.results.graph.collection.internal.ArrayInitializer
-
- All Implemented Interfaces:
CollectionInitializer
,FetchParentAccess
,Initializer
public class ArrayInitializer extends AbstractImmediateCollectionInitializer
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.hibernate.sql.results.graph.collection.internal.AbstractCollectionInitializer
AbstractCollectionInitializer.State
-
-
Field Summary
-
Fields inherited from class org.hibernate.sql.results.graph.collection.internal.AbstractCollectionInitializer
collectionAttributeMapping, collectionInstance, collectionKey, collectionKeyResultAssembler, isResultInitializer, parentAccess, parentShallowCached, state
-
-
Constructor Summary
Constructors Constructor Description ArrayInitializer(NavigablePath navigablePath, PluralAttributeMapping arrayDescriptor, FetchParentAccess parentAccess, LockMode lockMode, DomainResult<?> collectionKeyResult, DomainResult<?> collectionValueKeyResult, Fetch listIndexFetch, Fetch elementFetch, boolean isResultInitializer, AssemblerCreationState creationState)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
forEachAssembler(Consumer<DomainResultAssembler<?>> consumer)
@Nullable PersistentArrayHolder<?>
getCollectionInstance()
protected String
getSimpleConcreteImplName()
void
initializeInstanceFromParent(Object parentInstance, RowProcessingState rowProcessingState)
Step 3.1 - Initialize the state of the instance as extracted from the given parentInstance.protected void
initializeSubInstancesFromParent(RowProcessingState rowProcessingState)
protected void
readCollectionRow(CollectionKey collectionKey, List<Object> loadingState, RowProcessingState rowProcessingState)
String
toString()
-
Methods inherited from class org.hibernate.sql.results.graph.collection.internal.AbstractImmediateCollectionInitializer
endLoading, finishUpRow, initializeInstance, markShallowCached, resolveInstance, resolveKey, startLoading, takeResponsibility
-
Methods inherited from class org.hibernate.sql.results.graph.collection.internal.AbstractCollectionInitializer
findFirstEntityDescriptorAccess, getCollectionAttributeMapping, getFetchParentAccess, getInitializedPart, getNavigablePath, getOwnedModelPartDeclaringType, getOwningParent, getParentKey, isPartOfKey, isResultInitializer, registerResolutionListener, resolveCollectionKey, resolveInstance
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.hibernate.sql.results.graph.collection.CollectionInitializer
asCollectionInitializer, getInitializedInstance, getInitializingCollectionDescriptor, isCollectionInitializer
-
Methods inherited from interface org.hibernate.sql.results.graph.FetchParentAccess
findFirstEntityInitializer, shouldSkipInitializer
-
Methods inherited from interface org.hibernate.sql.results.graph.Initializer
asEmbeddableInitializer, asEntityInitializer, isEmbeddableInitializer, isEntityInitializer
-
-
-
-
Constructor Detail
-
ArrayInitializer
public ArrayInitializer(NavigablePath navigablePath, PluralAttributeMapping arrayDescriptor, FetchParentAccess parentAccess, LockMode lockMode, DomainResult<?> collectionKeyResult, DomainResult<?> collectionValueKeyResult, Fetch listIndexFetch, Fetch elementFetch, boolean isResultInitializer, AssemblerCreationState creationState)
-
-
Method Detail
-
getSimpleConcreteImplName
protected String getSimpleConcreteImplName()
- Specified by:
getSimpleConcreteImplName
in classAbstractImmediateCollectionInitializer
-
forEachAssembler
protected void forEachAssembler(Consumer<DomainResultAssembler<?>> consumer)
- Specified by:
forEachAssembler
in classAbstractImmediateCollectionInitializer
-
getCollectionInstance
public @Nullable PersistentArrayHolder<?> getCollectionInstance()
- Specified by:
getCollectionInstance
in interfaceCollectionInitializer
- Overrides:
getCollectionInstance
in classAbstractCollectionInitializer
-
readCollectionRow
protected void readCollectionRow(CollectionKey collectionKey, List<Object> loadingState, RowProcessingState rowProcessingState)
- Specified by:
readCollectionRow
in classAbstractImmediateCollectionInitializer
-
initializeInstanceFromParent
public void initializeInstanceFromParent(Object parentInstance, RowProcessingState rowProcessingState)
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
- Overrides:
initializeInstanceFromParent
in classAbstractImmediateCollectionInitializer
-
initializeSubInstancesFromParent
protected void initializeSubInstancesFromParent(RowProcessingState rowProcessingState)
- Specified by:
initializeSubInstancesFromParent
in classAbstractImmediateCollectionInitializer
-
-