Interface RowProcessingState
- All Superinterfaces:
ExecutionContext
State pertaining to the processing of a single "row" of a JdbcValuesSource
-
Method Summary
Modifier and TypeMethodDescriptionvoidMove after the last row.voidMove before the first row.determineEffectiveLockMode(String alias) voidfinishRowProcessing(boolean wasAdded) Callback at the end of processing the current "row"booleanfirst()Move to the first row.<T extends InitializerData>
TgetInitializerData(int initializerId) getJdbcValue(int position) Retrieve the value corresponding to the given index as part of the "current JDBC row".default ObjectgetJdbcValue(SqlSelection sqlSelection) Retrieve the value corresponding to the given SqlSelection as part of the "current JDBC row".Access to the state related to the overall processing of the results.intObtain the current row position.RowReader<?> todo (6.0) : do we want this here? Depends how we handle caching assembler / result mementobooleanisFirst()Whether the cursor is on the first row.booleanisLast()Whether the cursor is on the last row.booleanbooleanlast()Move to the last row.booleanbooleannext()Advance to the next row.booleanposition(int position) Move to the given absolute position.booleanprevious()Move to the previous row.voidregisterNonExists(EntityFetch fetch) booleanscroll(int numberOfRows) Move by the given relative number of rows.voidsetInitializerData(int initializerId, InitializerData state) default RowProcessingStateunwrap()If this is a row processing state for aggregate components, this will return the underlying row processing state.Methods inherited from interface ExecutionContext
afterStatement, getCallback, getCollectionKey, getEntityId, getEntityInstance, getEntityUniqueKey, getEntityUniqueKeyAttributePath, getLoadQueryInfluencers, getQueryIdentifier, getQueryOptions, getQueryParameterBindings, getRootEntityDescriptor, getSession, hasCallbackActions, hasQueryExecutionToBeAddedToStatistics, isScrollResult, isTransactionActive, registerLoadingEntityHolder, upgradeLocks
-
Method Details
-
next
boolean next()Advance to the next row.- Since:
- 8.0
-
previous
boolean previous()Move to the previous row.- Since:
- 8.0
-
scroll
boolean scroll(int numberOfRows) Move by the given relative number of rows.- Since:
- 8.0
-
position
boolean position(int position) Move to the given absolute position.- Since:
- 8.0
-
getPosition
int getPosition()Obtain the current row position.- Since:
- 8.0
-
beforeFirst
void beforeFirst()Move before the first row.- Since:
- 8.0
-
first
boolean first()Move to the first row.- Since:
- 8.0
-
last
boolean last()Move to the last row.- Since:
- 8.0
-
afterLast
void afterLast()Move after the last row.- Since:
- 8.0
-
isFirst
boolean isFirst()Whether the cursor is on the first row.- Since:
- 8.0
-
isLast
boolean isLast()Whether the cursor is on the last row.- Since:
- 8.0
-
getJdbcValuesSourceProcessingState
JdbcValuesSourceProcessingState getJdbcValuesSourceProcessingState()Access to the state related to the overall processing of the results. -
determineEffectiveLockMode
-
needsResolveState
boolean needsResolveState() -
getInitializerData
-
setInitializerData
-
getJdbcValue
Retrieve the value corresponding to the given SqlSelection as part of the "current JDBC row".- See Also:
-
getRowReader
RowReader<?> getRowReader()todo (6.0) : do we want this here? Depends how we handle caching assembler / result memento -
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. -
registerNonExists
-
isQueryCacheHit
boolean isQueryCacheHit() -
finishRowProcessing
void finishRowProcessing(boolean wasAdded) Callback at the end of processing the current "row" -
unwrap
If this is a row processing state for aggregate components, this will return the underlying row processing state.
-