Class AggregateEmbeddableInitializerImpl
java.lang.Object
org.hibernate.sql.results.graph.internal.AbstractInitializer<EmbeddableInitializerImpl.EmbeddableInitializerData>
org.hibernate.sql.results.graph.embeddable.internal.EmbeddableInitializerImpl
org.hibernate.sql.results.graph.embeddable.internal.AggregateEmbeddableInitializerImpl
- All Implemented Interfaces:
EmbeddableInitializer<EmbeddableInitializerImpl.EmbeddableInitializerData>,Initializer<EmbeddableInitializerImpl.EmbeddableInitializerData>,InitializerParent<EmbeddableInitializerImpl.EmbeddableInitializerData>
An initializer for an embeddable that is mapped as aggregate e.g. STRUCT, JSON or XML.
The aggregate selection reads an Object[] from JDBC which serves as data for the nested
DomainResultAssembler.
This class exposes the Object[] of the aggregate to the nested assemblers through a wrapping RowProcessingState.-
Nested Class Summary
Nested classes/interfaces inherited from class org.hibernate.sql.results.graph.embeddable.internal.EmbeddableInitializerImpl
EmbeddableInitializerImpl.EmbeddableInitializerDataNested classes/interfaces inherited from interface org.hibernate.sql.results.graph.Initializer
Initializer.State -
Field Summary
Fields inherited from class org.hibernate.sql.results.graph.embeddable.internal.EmbeddableInitializerImpl
assemblers, collectionContainingSubInitializers, discriminatorAssembler, hasLazySubInitializer, lazyCapable, nullIndicatorAssembler, subInitializers, subInitializersForResolveFromInitializedFields inherited from class org.hibernate.sql.results.graph.internal.AbstractInitializer
initializerIdFields inherited from interface org.hibernate.sql.results.graph.Initializer
EMPTY_ARRAY -
Constructor Summary
ConstructorsConstructorDescriptionAggregateEmbeddableInitializerImpl(AggregateEmbeddableResultGraphNode resultDescriptor, BasicFetch<?> discriminatorFetch, InitializerParent<?> parent, AssemblerCreationState creationState, boolean isResultInitializer) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidint[]Object[]getJdbcValues(RowProcessingState processingState) voidstartLoading(RowProcessingState rowProcessingState) Step 0 - Callback for initializers before the first row is read.Methods inherited from class org.hibernate.sql.results.graph.embeddable.internal.EmbeddableInitializerImpl
createInitializerData, forEachSubInitializer, getInitializedPart, getNavigablePath, getParent, hasLazySubInitializers, initializeInstance, initializeInstanceFromParent, isEager, isLazyCapable, isNull, isPartOfKey, isResultInitializer, resetResolvedEntityRegistrations, resolveFromPreviousRow, resolveInstance, resolveInstance, resolveKey, resolveState, toStringMethods inherited from class org.hibernate.sql.results.graph.internal.AbstractInitializer
finishUpRow, getDataMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.hibernate.sql.results.graph.embeddable.EmbeddableInitializer
asEmbeddableInitializer, isEmbeddableInitializerMethods inherited from interface org.hibernate.sql.results.graph.Initializer
asCollectionInitializer, asEntityInitializer, endLoading, findOwningEntityInitializer, finishUpRow, getData, getResolvedInstance, getResolvedInstance, initializeInstance, initializeInstanceFromParent, isCollectionInitializer, isEntityInitializer, resolveFromPreviousRow, resolveInstance, resolveInstance, resolveKey, resolveState
-
Constructor Details
-
AggregateEmbeddableInitializerImpl
public AggregateEmbeddableInitializerImpl(AggregateEmbeddableResultGraphNode resultDescriptor, BasicFetch<?> discriminatorFetch, InitializerParent<?> parent, AssemblerCreationState creationState, boolean isResultInitializer)
-
-
Method Details
-
startLoading
Description copied from interface:InitializerStep 0 - Callback for initializers before the first row is read. It is the responsibility of this initializer to recurse to the sub-initializers and registerInitializerDatafor the initializer id viaRowProcessingState.setInitializerData(int, InitializerData).This is useful for e.g. preparing initializers in case of a cache hit.
- Specified by:
startLoadingin interfaceInitializer<EmbeddableInitializerImpl.EmbeddableInitializerData>- Overrides:
startLoadingin classAbstractInitializer<EmbeddableInitializerImpl.EmbeddableInitializerData>
-
extractRowState
- Overrides:
extractRowStatein classEmbeddableInitializerImpl
-
getAggregateValuesArrayPositions
public int[] getAggregateValuesArrayPositions() -
getJdbcValues
-