Top Fields Constructors Methods
org.hibernate.sql.results.graph.embeddable.internal

public Class NestedRowProcessingState

extends BaseExecutionContext
implements RowProcessingState
Class Inheritance
All Implemented Interfaces
org.hibernate.sql.results.jdbc.spi.RowProcessingState, org.hibernate.sql.exec.spi.ExecutionContext
Imports
org.hibernate.engine.spi.CollectionKey, .EntityHolder, .EntityKey, .SubselectFetch, org.hibernate.metamodel.mapping.EntityMappingType, org.hibernate.query.spi.QueryOptions, .QueryParameterBindings, org.hibernate.resource.jdbc.spi.LogicalConnectionImplementor, org.hibernate.spi.NavigablePath, org.hibernate.sql.exec.internal.BaseExecutionContext, org.hibernate.sql.exec.spi.Callback, org.hibernate.sql.results.graph.Initializer, org.hibernate.sql.results.graph.entity.EntityFetch, org.hibernate.sql.results.jdbc.spi.JdbcValuesSourceProcessingState, .RowProcessingState, org.hibernate.sql.results.spi.RowReader

Field Summary

Modifier and TypeField and Description
private final AggregateEmbeddableInitializer
pack-priv final RowProcessingState

Constructor Summary

AccessConstructor and Description
public
NestedRowProcessingState(AggregateEmbeddableInitializer aggregateEmbeddableInitializer, RowProcessingState processingState)

Method Summary

Modifier and TypeMethod and Description
public void
public void
finishRowProcessing()

Implements org.hibernate.sql.results.jdbc.spi.RowProcessingState.finishRowProcessing.

Callback at the end of processing the current "row"
public Callback
public CollectionKey
getCollectionKey()

Overrides default org.hibernate.sql.exec.spi.ExecutionContext.getCollectionKey.

Get the collection key for the collection which is to be loaded immediately.
public Object
public Object
getEntityInstance()

Overrides default org.hibernate.sql.exec.spi.ExecutionContext.getEntityInstance.

Should only be used when initializing a bytecode-proxy
public Object
getJdbcValue(int position)

Implements org.hibernate.sql.results.jdbc.spi.RowProcessingState.getJdbcValue.

Retrieve the value corresponding to the given index as part of the "current JDBC row".
public JdbcValuesSourceProcessingState
getJdbcValuesSourceProcessingState()

Implements org.hibernate.sql.results.jdbc.spi.RowProcessingState.getJdbcValuesSourceProcessingState.

Access to the state related to the overall processing of the results.
public QueryOptions
public QueryParameterBindings
public EntityMappingType
public RowReader<?>
public boolean
public boolean
public boolean
public boolean
public void
public void
public Initializer
resolveInitializer(NavigablePath path)

Implements org.hibernate.sql.results.jdbc.spi.RowProcessingState.resolveInitializer.

Locate the Initializer registered for the given path
public static NestedRowProcessingState
wrap(AggregateEmbeddableInitializer aggregateEmbeddableInitializer, RowProcessingState processingState)

Inherited from org.hibernate.sql.exec.internal.BaseExecutionContext:
getLoadQueryInfluencersgetQueryIdentifiergetSession

Field Detail

aggregateEmbeddableInitializerback to summary
private final AggregateEmbeddableInitializer aggregateEmbeddableInitializer
processingStateback to summary
pack-priv final RowProcessingState processingState

Constructor Detail

NestedRowProcessingStateback to summary
public NestedRowProcessingState(AggregateEmbeddableInitializer aggregateEmbeddableInitializer, RowProcessingState processingState)

Method Detail

afterStatementback to summary
public void afterStatement(LogicalConnectionImplementor logicalConnection)

Overrides default org.hibernate.sql.exec.spi.ExecutionContext.afterStatement.

Doc from org.hibernate.sql.exec.spi.ExecutionContext.afterStatement.

Hook to allow delaying calls to LogicalConnectionImplementor#afterStatement(). Mainly used in the case of batching and multi-table mutations

Annotations
@Override
finishRowProcessingback to summary
public void finishRowProcessing()

Implements org.hibernate.sql.results.jdbc.spi.RowProcessingState.finishRowProcessing.

Doc from org.hibernate.sql.results.jdbc.spi.RowProcessingState.finishRowProcessing.

Callback at the end of processing the current "row"

Annotations
@Override
getCallbackback to summary
public Callback getCallback()

Overrides org.hibernate.sql.exec.internal.BaseExecutionContext.getCallback.

Implements org.hibernate.sql.exec.spi.ExecutionContext.getCallback.

Annotations
@Override
getCollectionKeyback to summary
public CollectionKey getCollectionKey()

Overrides default org.hibernate.sql.exec.spi.ExecutionContext.getCollectionKey.

Doc from org.hibernate.sql.exec.spi.ExecutionContext.getCollectionKey.

Get the collection key for the collection which is to be loaded immediately.

Annotations
@Override
getEntityIdback to summary
public Object getEntityId()

Overrides default org.hibernate.sql.exec.spi.ExecutionContext.getEntityId.

Annotations
@Override
getEntityInstanceback to summary
public Object getEntityInstance()

Overrides default org.hibernate.sql.exec.spi.ExecutionContext.getEntityInstance.

Doc from org.hibernate.sql.exec.spi.ExecutionContext.getEntityInstance.

Should only be used when initializing a bytecode-proxy

Annotations
@Override
getJdbcValueback to summary
public Object getJdbcValue(int position)

Implements org.hibernate.sql.results.jdbc.spi.RowProcessingState.getJdbcValue.

Doc from org.hibernate.sql.results.jdbc.spi.RowProcessingState.getJdbcValue.

Retrieve the value corresponding to the given index as part of the "current JDBC row". We read all the ResultSet values for the given row one time and store them into an array internally based on the principle that multiple accesses to this array will be significantly faster than accessing them from the ResultSet potentially multiple times.

Annotations
@Override
getJdbcValuesSourceProcessingStateback to summary
public JdbcValuesSourceProcessingState getJdbcValuesSourceProcessingState()

Implements org.hibernate.sql.results.jdbc.spi.RowProcessingState.getJdbcValuesSourceProcessingState.

Doc from org.hibernate.sql.results.jdbc.spi.RowProcessingState.getJdbcValuesSourceProcessingState.

Access to the state related to the overall processing of the results.

Annotations
@Override
getQueryOptionsback to summary
public QueryOptions getQueryOptions()

Overrides org.hibernate.sql.exec.internal.BaseExecutionContext.getQueryOptions.

Implements org.hibernate.sql.exec.spi.ExecutionContext.getQueryOptions.

Annotations
@Override
getQueryParameterBindingsback to summary
public QueryParameterBindings getQueryParameterBindings()

Overrides org.hibernate.sql.exec.internal.BaseExecutionContext.getQueryParameterBindings.

Implements org.hibernate.sql.exec.spi.ExecutionContext.getQueryParameterBindings.

Annotations
@Override
getRootEntityDescriptorback to summary
public EntityMappingType getRootEntityDescriptor()

Overrides default org.hibernate.sql.exec.spi.ExecutionContext.getRootEntityDescriptor.

Annotations
@Override
getRowReaderback to summary
public RowReader<?> getRowReader()

Implements org.hibernate.sql.results.jdbc.spi.RowProcessingState.getRowReader.

Doc from org.hibernate.sql.results.jdbc.spi.RowProcessingState.getRowReader.

todo (6.0) : do we want this here? Depends how we handle caching assembler / result memento

Annotations
@Override
hasCallbackActionsback to summary
public boolean hasCallbackActions()

Overrides default org.hibernate.sql.exec.spi.ExecutionContext.hasCallbackActions.

Annotations
@Override
hasQueryExecutionToBeAddedToStatisticsback to summary
public boolean hasQueryExecutionToBeAddedToStatistics()

Overrides default org.hibernate.sql.exec.spi.ExecutionContext.hasQueryExecutionToBeAddedToStatistics.

Doc from org.hibernate.sql.exec.spi.ExecutionContext.hasQueryExecutionToBeAddedToStatistics.

Determine if the query execution has to be considered by the org.hibernate.stat.Statistics.

Returns:boolean

true if the query execution has to be added to the org.hibernate.stat.Statistics, false otherwise.

Annotations
@Override
isQueryCacheHitback to summary
public boolean isQueryCacheHit()

Implements org.hibernate.sql.results.jdbc.spi.RowProcessingState.isQueryCacheHit.

Annotations
@Override
isScrollResultback to summary
public boolean isScrollResult()

Overrides default org.hibernate.sql.exec.spi.ExecutionContext.isScrollResult.

Annotations
@Override
registerLoadingEntityHolderback to summary
public void registerLoadingEntityHolder(EntityHolder holder)

Overrides default org.hibernate.sql.exec.spi.ExecutionContext.registerLoadingEntityHolder.

Annotations
@Override
registerNonExistsback to summary
public void registerNonExists(EntityFetch fetch)

Implements org.hibernate.sql.results.jdbc.spi.RowProcessingState.registerNonExists.

Annotations
@Override
resolveInitializerback to summary
public Initializer resolveInitializer(NavigablePath path)

Implements org.hibernate.sql.results.jdbc.spi.RowProcessingState.resolveInitializer.

Doc from org.hibernate.sql.results.jdbc.spi.RowProcessingState.resolveInitializer.

Locate the Initializer registered for the given path

Annotations
@Override
wrapback to summary
public static NestedRowProcessingState wrap(AggregateEmbeddableInitializer aggregateEmbeddableInitializer, RowProcessingState processingState)