Interface JdbcValues
- All Known Implementing Classes:
AbstractJdbcValues,JdbcValuesCacheHit,JdbcValuesResultSetImpl
public interface JdbcValues
Provides unified access to query results (JDBC values - see
RowProcessingState.getJdbcValue(org.hibernate.sql.ast.spi.SqlSelection) whether they come from
query cache or ResultSet. Implementations also manage any cache puts
if required.-
Method Summary
Modifier and TypeMethodDescriptionvoidafterLast(RowProcessingState rowProcessingState) voidbeforeFirst(RowProcessingState rowProcessingState) voidfinishRowProcessing(RowProcessingState rowProcessingState, boolean wasAdded) voidfinishUp(SharedSessionContractImplementor session) Give implementations a chance to finish processingbooleanfirst(RowProcessingState rowProcessingState) getCurrentRowValue(int valueIndex) Get the JDBC value at the given index for the row currently positioned at within this source.intintThe estimate for the amount of results that can be expected for pre-sizing collections.booleanisAfterLast(RowProcessingState rowProcessingState) booleanisBeforeFirst(RowProcessingState rowProcessingState) booleanisFirst(RowProcessingState rowProcessingState) booleanisLast(RowProcessingState rowProcessingState) booleanlast(RowProcessingState rowProcessingState) booleannext(RowProcessingState rowProcessingState) Advances the "cursor position" and returns a boolean indicating whether there is a row available to read viagetCurrentRowValue(int).booleanposition(int position, RowProcessingState rowProcessingState) Moves the "cursor position" to the specified positionbooleanprevious(RowProcessingState rowProcessingState) Advances the "cursor position" in reverse and returns a boolean indicating whether there is a row available to read viagetCurrentRowValue(int).booleanscroll(int numberOfRows, RowProcessingState rowProcessingState) Advances the "cursor position" the indicated number of rows and returns a boolean indicating whether there is a row available to read viagetCurrentRowValue(int).voidsetFetchSize(int fetchSize) boolean
-
Method Details
-
getValuesMapping
JdbcValuesMapping getValuesMapping() -
usesFollowOnLocking
boolean usesFollowOnLocking() -
next
Advances the "cursor position" and returns a boolean indicating whether there is a row available to read viagetCurrentRowValue(int).- Returns:
trueif there are results
-
previous
Advances the "cursor position" in reverse and returns a boolean indicating whether there is a row available to read viagetCurrentRowValue(int).- Returns:
trueif there are results available
-
scroll
Advances the "cursor position" the indicated number of rows and returns a boolean indicating whether there is a row available to read viagetCurrentRowValue(int).- Parameters:
numberOfRows- The number of rows to advance. This can also be negative meaning to move in reverse- Returns:
trueif there are results available
-
position
Moves the "cursor position" to the specified position -
getPosition
int getPosition() -
isBeforeFirst
-
beforeFirst
-
isFirst
-
first
-
isAfterLast
-
afterLast
-
isLast
-
last
-
getCurrentRowValue
Get the JDBC value at the given index for the row currently positioned at within this source.- Returns:
- The current row's JDBC values, or
nullif the position is beyond the end of the available results.
-
finishRowProcessing
-
setFetchSize
void setFetchSize(int fetchSize) -
getResultCountEstimate
int getResultCountEstimate()The estimate for the amount of results that can be expected for pre-sizing collections. May return zero or negative values if the count can not be reasonably estimated.- Since:
- 6.6
-