Class RowProcessingStateStandardImpl
java.lang.Object
org.hibernate.sql.exec.internal.BaseExecutionContext
org.hibernate.sql.results.internal.RowProcessingStateStandardImpl
- All Implemented Interfaces:
ExecutionContext,RowProcessingState
public class RowProcessingStateStandardImpl
extends BaseExecutionContext
implements RowProcessingState
Standard RowProcessingState implementation
-
Constructor Summary
ConstructorsConstructorDescriptionRowProcessingStateStandardImpl(JdbcValuesSourceProcessingStateStandardImpl resultSetProcessingState, ExecutionContext executionContext, RowReader<?> rowReader, JdbcValues jdbcValues) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidafterStatement(LogicalConnectionImplementor logicalConnection) Hook to allow delaying calls toLogicalConnectionImplementor.afterStatement().voiddetermineEffectiveLockMode(String alias) voidfinishRowProcessing(boolean wasAdded) Callback at the end of processing the current "row"booleanfirst()Get the collection key for the collection which is to be loaded immediately.Should only be used when initializing a bytecode-proxy<T extends InitializerData>
TgetInitializerData(int initializerId) getJdbcValue(int position) Retrieve the value corresponding to the given index as part of the "current JDBC row".Access to the state related to the overall processing of the results.intRowReader<?> todo (6.0) : do we want this here? Depends how we handle caching assembler / result mementobooleanbooleanDetermine if the query execution has to be considered by theStatistics.booleanbooleanbooleanisFirst()booleanisLast()booleanbooleanbooleanlast()booleanbooleannext()booleanposition(int i) booleanprevious()voidvoidregisterNonExists(EntityFetch fetch) booleanscroll(int i) voidsetInitializerData(int initializerId, InitializerData state) booleanDoes this query return objects that might be already cached by the session, whose lock mode may need upgradingMethods inherited from class org.hibernate.sql.exec.internal.BaseExecutionContext
getLoadQueryInfluencers, getQueryIdentifier, getSession, isTransactionActiveMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hibernate.sql.exec.spi.ExecutionContext
getLoadQueryInfluencers, getQueryIdentifier, getSession, isTransactionActiveMethods inherited from interface org.hibernate.sql.results.jdbc.spi.RowProcessingState
getJdbcValue, unwrap
-
Constructor Details
-
RowProcessingStateStandardImpl
public RowProcessingStateStandardImpl(JdbcValuesSourceProcessingStateStandardImpl resultSetProcessingState, ExecutionContext executionContext, RowReader<?> rowReader, JdbcValues jdbcValues)
-
-
Method Details
-
getJdbcValuesSourceProcessingState
Description copied from interface:RowProcessingStateAccess to the state related to the overall processing of the results.- Specified by:
getJdbcValuesSourceProcessingStatein interfaceRowProcessingState
-
determineEffectiveLockMode
- Specified by:
determineEffectiveLockModein interfaceRowProcessingState
-
needsResolveState
public boolean needsResolveState()- Specified by:
needsResolveStatein interfaceRowProcessingState
-
getInitializerData
- Specified by:
getInitializerDatain interfaceRowProcessingState
-
setInitializerData
- Specified by:
setInitializerDatain interfaceRowProcessingState
-
getRowReader
Description copied from interface:RowProcessingStatetodo (6.0) : do we want this here? Depends how we handle caching assembler / result memento- Specified by:
getRowReaderin interfaceRowProcessingState
-
next
public boolean next() -
previous
public boolean previous() -
scroll
public boolean scroll(int i) -
position
public boolean position(int i) -
getPosition
public int getPosition() -
isBeforeFirst
public boolean isBeforeFirst() -
beforeFirst
public void beforeFirst() -
isFirst
public boolean isFirst() -
first
public boolean first() -
last
public boolean last() -
isLast
public boolean isLast() -
afterLast
public void afterLast() -
isAfterLast
public boolean isAfterLast() -
getJdbcValue
Description copied from interface:RowProcessingStateRetrieve 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.- Specified by:
getJdbcValuein interfaceRowProcessingState
-
registerNonExists
- Specified by:
registerNonExistsin interfaceRowProcessingState
-
isQueryCacheHit
public boolean isQueryCacheHit()- Specified by:
isQueryCacheHitin interfaceRowProcessingState
-
finishRowProcessing
public void finishRowProcessing(boolean wasAdded) Description copied from interface:RowProcessingStateCallback at the end of processing the current "row"- Specified by:
finishRowProcessingin interfaceRowProcessingState
-
getQueryOptions
- Specified by:
getQueryOptionsin interfaceExecutionContext- Overrides:
getQueryOptionsin classBaseExecutionContext
-
getQueryParameterBindings
- Specified by:
getQueryParameterBindingsin interfaceExecutionContext- Overrides:
getQueryParameterBindingsin classBaseExecutionContext
-
isScrollResult
public boolean isScrollResult()- Specified by:
isScrollResultin interfaceExecutionContext
-
getCallback
- Specified by:
getCallbackin interfaceExecutionContext- Overrides:
getCallbackin classBaseExecutionContext
-
hasCallbackActions
public boolean hasCallbackActions()- Specified by:
hasCallbackActionsin interfaceExecutionContext
-
getCollectionKey
Description copied from interface:ExecutionContextGet the collection key for the collection which is to be loaded immediately.- Specified by:
getCollectionKeyin interfaceExecutionContext
-
getEntityInstance
Description copied from interface:ExecutionContextShould only be used when initializing a bytecode-proxy- Specified by:
getEntityInstancein interfaceExecutionContext
-
getEntityId
- Specified by:
getEntityIdin interfaceExecutionContext
-
getEntityUniqueKeyAttributePath
- Specified by:
getEntityUniqueKeyAttributePathin interfaceExecutionContext
-
getEntityUniqueKey
- Specified by:
getEntityUniqueKeyin interfaceExecutionContext
-
getRootEntityDescriptor
- Specified by:
getRootEntityDescriptorin interfaceExecutionContext
-
registerLoadingEntityHolder
- Specified by:
registerLoadingEntityHolderin interfaceExecutionContext
-
afterStatement
Description copied from interface:ExecutionContextHook to allow delaying calls toLogicalConnectionImplementor.afterStatement(). Mainly used in the case of batching and multi-table mutations- Specified by:
afterStatementin interfaceExecutionContext
-
hasQueryExecutionToBeAddedToStatistics
public boolean hasQueryExecutionToBeAddedToStatistics()Description copied from interface:ExecutionContextDetermine if the query execution has to be considered by theStatistics.- Specified by:
hasQueryExecutionToBeAddedToStatisticsin interfaceExecutionContext- Returns:
- true if the query execution has to be added to the
Statistics, false otherwise.
-
upgradeLocks
public boolean upgradeLocks()Description copied from interface:ExecutionContextDoes this query return objects that might be already cached by the session, whose lock mode may need upgrading- Specified by:
upgradeLocksin interfaceExecutionContext
-