Class JdbcValuesResultSetImpl
java.lang.Object
org.hibernate.sql.results.jdbc.internal.AbstractJdbcValues
org.hibernate.sql.results.jdbc.internal.JdbcValuesResultSetImpl
- All Implemented Interfaces:
JdbcValues
AbstractJdbcValues implementation for a JDBC ResultSet as the source-
Constructor Summary
ConstructorsConstructorDescriptionJdbcValuesResultSetImpl(ResultSetAccess resultSetAccess, QueryKey queryCacheKey, String queryIdentifier, QueryOptions queryOptions, boolean usesFollowOnLocking, JdbcValuesMapping valuesMapping, CachedJdbcValuesMetadata metadataForCache, ExecutionContext executionContext) -
Method Summary
Modifier and TypeMethodDescriptionvoidafterLast(RowProcessingState rowProcessingState) voidbeforeFirst(RowProcessingState rowProcessingState) voidfinishRowProcessing(RowProcessingState rowProcessingState, boolean wasAdded) final 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) protected final booleanprocessNext(RowProcessingState rowProcessingState) protected booleanprocessPosition(int position, RowProcessingState rowProcessingState) protected booleanprocessPrevious(RowProcessingState rowProcessingState) protected booleanprocessScroll(int numberOfRows, RowProcessingState rowProcessingState) voidvoidsetFetchSize(int fetchSize) booleanMethods inherited from class org.hibernate.sql.results.jdbc.internal.AbstractJdbcValues
next, position, previous, scroll
-
Constructor Details
-
JdbcValuesResultSetImpl
public JdbcValuesResultSetImpl(ResultSetAccess resultSetAccess, QueryKey queryCacheKey, String queryIdentifier, QueryOptions queryOptions, boolean usesFollowOnLocking, JdbcValuesMapping valuesMapping, CachedJdbcValuesMetadata metadataForCache, ExecutionContext executionContext)
-
-
Method Details
-
processNext
- Specified by:
processNextin classAbstractJdbcValues
-
processPrevious
- Specified by:
processPreviousin classAbstractJdbcValues
-
processScroll
- Specified by:
processScrollin classAbstractJdbcValues
-
getPosition
public int getPosition() -
processPosition
- Specified by:
processPositionin classAbstractJdbcValues
-
isBeforeFirst
-
beforeFirst
-
isFirst
-
first
-
isAfterLast
-
afterLast
-
isLast
-
last
-
readCurrentRowValues
public void readCurrentRowValues() -
getValuesMapping
-
usesFollowOnLocking
public boolean usesFollowOnLocking() -
finishRowProcessing
-
getCurrentRowValue
Description copied from interface:JdbcValuesGet 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.
-
setFetchSize
public void setFetchSize(int fetchSize) -
getResultCountEstimate
public int getResultCountEstimate()Description copied from interface:JdbcValuesThe 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.
-