Class AggregateEmbeddableResultInitializer
- java.lang.Object
-
- org.hibernate.sql.results.graph.AbstractFetchParentAccess
-
- org.hibernate.sql.results.graph.embeddable.AbstractEmbeddableInitializer
-
- org.hibernate.sql.results.graph.embeddable.internal.AggregateEmbeddableResultInitializer
-
- All Implemented Interfaces:
ValueAccess
,EmbeddableInitializer
,AggregateEmbeddableInitializer
,FetchParentAccess
,Initializer
public class AggregateEmbeddableResultInitializer extends AbstractEmbeddableInitializer implements AggregateEmbeddableInitializer
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 nestedDomainResultAssembler
. This class exposes the Object[] of the aggregate to the nested assemblers through a wrappingRowProcessingState
.
-
-
Field Summary
-
Fields inherited from class org.hibernate.sql.results.graph.embeddable.AbstractEmbeddableInitializer
assemblers, compositeInstance
-
-
Constructor Summary
Constructors Constructor Description AggregateEmbeddableResultInitializer(FetchParentAccess fetchParentAccess, EmbeddableResultGraphNode resultDescriptor, AssemblerCreationState creationState, SqlSelection structSelection)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected DomainResultAssembler<?>[]
createAssemblers(EmbeddableResultGraphNode resultDescriptor, AssemblerCreationState creationState, EmbeddableMappingType embeddableTypeDescriptor)
int[]
getAggregateValuesArrayPositions()
Object
getParentKey()
NestedRowProcessingState
wrapProcessingState(RowProcessingState processingState)
-
Methods inherited from class org.hibernate.sql.results.graph.embeddable.AbstractEmbeddableInitializer
findFirstEntityDescriptorAccess, findFirstEntityInitializer, finishUpRow, getCompositeInstance, getFetchParentAccess, getInitializedPart, getNavigablePath, getOwner, getValue, getValues, initializeInstance, resolveInstance, resolveKey, resolveState, toString
-
Methods inherited from class org.hibernate.sql.results.graph.AbstractFetchParentAccess
clearResolutionListeners, notifyResolutionListeners, registerResolutionListener
-
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.embeddable.internal.AggregateEmbeddableInitializer
getJdbcValues
-
Methods inherited from interface org.hibernate.sql.results.graph.embeddable.EmbeddableInitializer
asEmbeddableInitializer, getCompositeInstance, getFetchParentAccess, getInitializedInstance, getInitializedPart, isEmbeddableInitializer, resolveState
-
Methods inherited from interface org.hibernate.sql.results.graph.FetchParentAccess
findFirstEntityDescriptorAccess, findFirstEntityInitializer, getNavigablePath, registerResolutionListener
-
Methods inherited from interface org.hibernate.sql.results.graph.Initializer
asEntityInitializer, endLoading, finishUpRow, initializeInstance, isAttributeAssignableToConcreteDescriptor, isCollectionInitializer, isEntityInitializer, resolveInstance, resolveKey
-
-
-
-
Constructor Detail
-
AggregateEmbeddableResultInitializer
public AggregateEmbeddableResultInitializer(FetchParentAccess fetchParentAccess, EmbeddableResultGraphNode resultDescriptor, AssemblerCreationState creationState, SqlSelection structSelection)
-
-
Method Detail
-
createAssemblers
protected DomainResultAssembler<?>[] createAssemblers(EmbeddableResultGraphNode resultDescriptor, AssemblerCreationState creationState, EmbeddableMappingType embeddableTypeDescriptor)
- Overrides:
createAssemblers
in classAbstractEmbeddableInitializer
-
getAggregateValuesArrayPositions
public int[] getAggregateValuesArrayPositions()
- Specified by:
getAggregateValuesArrayPositions
in interfaceAggregateEmbeddableInitializer
-
getParentKey
public Object getParentKey()
- Specified by:
getParentKey
in interfaceFetchParentAccess
-
wrapProcessingState
public NestedRowProcessingState wrapProcessingState(RowProcessingState processingState)
- Specified by:
wrapProcessingState
in interfaceEmbeddableInitializer
-
-