Class JdbcValuesCacheHit
java.lang.Object
org.hibernate.sql.results.jdbc.internal.AbstractJdbcValues
org.hibernate.sql.results.jdbc.internal.JdbcValuesCacheHit
- All Implemented Interfaces:
JdbcValues
An
AbstractJdbcValues
implementation for cases where we had a cache hit.-
Constructor Summary
ConstructorsConstructorDescriptionJdbcValuesCacheHit
(List<?> cachedResults, JdbcValuesMapping resolvedMapping) -
Method Summary
Modifier and TypeMethodDescriptionvoid
afterLast
(RowProcessingState rowProcessingState) void
beforeFirst
(RowProcessingState rowProcessingState) void
finishRowProcessing
(RowProcessingState rowProcessingState, boolean wasAdded) void
finishUp
(SharedSessionContractImplementor session) Give implementations a chance to finish processingboolean
first
(RowProcessingState rowProcessingState) getCurrentRowValue
(int valueIndex) Get the JDBC value at the given index for the row currently positioned at within this source.int
int
The estimate for the amount of results that can be expected for pre-sizing collections.boolean
isAfterLast
(RowProcessingState rowProcessingState) boolean
isBeforeFirst
(RowProcessingState rowProcessingState) boolean
isFirst
(RowProcessingState rowProcessingState) boolean
isLast
(RowProcessingState rowProcessingState) boolean
last
(RowProcessingState rowProcessingState) protected boolean
processNext
(RowProcessingState rowProcessingState) protected boolean
processPosition
(int position, RowProcessingState rowProcessingState) protected boolean
processPrevious
(RowProcessingState rowProcessingState) protected boolean
processScroll
(int numberOfRows, RowProcessingState rowProcessingState) void
setFetchSize
(int fetchSize) boolean
Methods inherited from class org.hibernate.sql.results.jdbc.internal.AbstractJdbcValues
next, position, previous, scroll
-
Constructor Details
-
JdbcValuesCacheHit
-
-
Method Details
-
processNext
- Specified by:
processNext
in classAbstractJdbcValues
-
processPrevious
- Specified by:
processPrevious
in classAbstractJdbcValues
-
processScroll
- Specified by:
processScroll
in classAbstractJdbcValues
-
getPosition
public int getPosition() -
processPosition
- Specified by:
processPosition
in classAbstractJdbcValues
-
isBeforeFirst
-
beforeFirst
-
isFirst
-
first
-
isAfterLast
-
afterLast
-
isLast
-
last
-
getValuesMapping
-
usesFollowOnLocking
public boolean usesFollowOnLocking() -
getCurrentRowValue
Description copied from interface:JdbcValues
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
null
if the position is beyond the end of the available results.
-
finishRowProcessing
-
setFetchSize
public void setFetchSize(int fetchSize) -
getResultCountEstimate
public int getResultCountEstimate()Description copied from interface:JdbcValues
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.
-