Top Description Fields Constructors Methods
org.hibernate.sql.results.internal

public Class RowProcessingStateStandardImpl

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, org.hibernate.metamodel.mapping.EntityMappingType, org.hibernate.resource.jdbc.spi.LogicalConnectionImplementor, org.hibernate.spi.NavigablePath, org.hibernate.query.spi.QueryOptions, .QueryParameterBindings, org.hibernate.sql.exec.internal.BaseExecutionContext, org.hibernate.sql.exec.spi.Callback, .ExecutionContext, org.hibernate.sql.results.graph.Initializer, org.hibernate.sql.results.graph.entity.EntityFetch, org.hibernate.sql.results.jdbc.internal.JdbcValuesCacheHit, .JdbcValuesSourceProcessingStateStandardImpl, org.hibernate.sql.results.jdbc.spi.JdbcValues, .JdbcValuesSourceProcessingState, .RowProcessingState, org.hibernate.sql.results.spi.RowReader

Standard RowProcessingState implementation

Field Summary

Modifier and TypeField and Description
private final ExecutionContext
private final InitializersList
private final JdbcValues
private final JdbcValuesSourceProcessingStateStandardImpl
private final RowReader<?>

Constructor Summary

AccessConstructor and Description
public
RowProcessingStateStandardImpl(JdbcValuesSourceProcessingStateStandardImpl resultSetProcessingState, ExecutionContext executionContext, RowReader<?> rowReader, JdbcValues jdbcValues)

Method Summary

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

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

Callback at the end of processing the current "row"
public boolean
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 int
public QueryOptions
public QueryParameterBindings
public EntityMappingType
public RowReader<?>
public boolean
public boolean
public boolean
public boolean
public boolean
public boolean
public boolean
public boolean
public boolean
public boolean
last()

public boolean
next()

public boolean
position(int i)

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 boolean
scroll(int i)

public boolean
upgradeLocks()

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

Does this query return objects that might be already cached by the session, whose lock mode may need upgrading
Inherited from org.hibernate.sql.exec.internal.BaseExecutionContext:
getLoadQueryInfluencersgetQueryIdentifiergetSession

Field Detail

executionContextback to summary
private final ExecutionContext executionContext
initializersback to summary
private final InitializersList initializers
jdbcValuesback to summary
private final JdbcValues jdbcValues
resultSetProcessingStateback to summary
private final JdbcValuesSourceProcessingStateStandardImpl resultSetProcessingState
rowReaderback to summary
private final RowReader<?> rowReader

Constructor Detail

RowProcessingStateStandardImplback to summary
public RowProcessingStateStandardImpl(JdbcValuesSourceProcessingStateStandardImpl resultSetProcessingState, ExecutionContext executionContext, RowReader<?> rowReader, JdbcValues jdbcValues)

Method Detail

afterLastback to summary
public void afterLast()
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
beforeFirstback to summary
public void beforeFirst()
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
firstback to summary
public boolean first()
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
getPositionback to summary
public int getPosition()
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
hasCollectionInitializersback to summary
public boolean hasCollectionInitializers()
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
isAfterLastback to summary
public boolean isAfterLast()
isBeforeFirstback to summary
public boolean isBeforeFirst()
isFirstback to summary
public boolean isFirst()
isLastback to summary
public boolean isLast()
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
lastback to summary
public boolean last()
nextback to summary
public boolean next()
positionback to summary
public boolean position(int i)
previousback to summary
public boolean previous()
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
scrollback to summary
public boolean scroll(int i)
upgradeLocksback to summary
public boolean upgradeLocks()

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

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

Does this query return objects that might be already cached by the session, whose lock mode may need upgrading

Annotations
@Override