Class JdbcValuesCacheHit
- java.lang.Object
-
- org.hibernate.sql.results.jdbc.internal.AbstractJdbcValues
-
- org.hibernate.sql.results.jdbc.internal.JdbcValuesCacheHit
-
- All Implemented Interfaces:
JdbcValues
public class JdbcValuesCacheHit extends AbstractJdbcValues
A JdbcValuesSource implementation for cases where we had a cache hit.
-
-
Constructor Summary
Constructors Constructor Description JdbcValuesCacheHit(Object[][] cachedData, JdbcValuesMapping resolvedMapping)
JdbcValuesCacheHit(List<?> cachedResults, JdbcValuesMapping resolvedMapping)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterLast(RowProcessingState rowProcessingState)
void
beforeFirst(RowProcessingState rowProcessingState)
boolean
first(RowProcessingState rowProcessingState)
Object[]
getCurrentRowValuesArray()
Get the JDBC values for the row currently positioned at within this source.int
getPosition()
JdbcValuesMapping
getValuesMapping()
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)
protected void
release()
void
setFetchSize(int fetchSize)
-
-
-
Constructor Detail
-
JdbcValuesCacheHit
public JdbcValuesCacheHit(Object[][] cachedData, JdbcValuesMapping resolvedMapping)
-
JdbcValuesCacheHit
public JdbcValuesCacheHit(List<?> cachedResults, JdbcValuesMapping resolvedMapping)
-
-
Method Detail
-
processNext
protected boolean processNext(RowProcessingState rowProcessingState)
- Specified by:
processNext
in classAbstractJdbcValues
-
processPrevious
protected boolean processPrevious(RowProcessingState rowProcessingState)
- Specified by:
processPrevious
in classAbstractJdbcValues
-
processScroll
protected boolean processScroll(int numberOfRows, RowProcessingState rowProcessingState)
- Specified by:
processScroll
in classAbstractJdbcValues
-
getPosition
public int getPosition()
-
processPosition
protected boolean processPosition(int position, RowProcessingState rowProcessingState)
- Specified by:
processPosition
in classAbstractJdbcValues
-
isBeforeFirst
public boolean isBeforeFirst(RowProcessingState rowProcessingState)
-
beforeFirst
public void beforeFirst(RowProcessingState rowProcessingState)
-
isFirst
public boolean isFirst(RowProcessingState rowProcessingState)
-
first
public boolean first(RowProcessingState rowProcessingState)
-
isAfterLast
public boolean isAfterLast(RowProcessingState rowProcessingState)
-
afterLast
public void afterLast(RowProcessingState rowProcessingState)
-
isLast
public boolean isLast(RowProcessingState rowProcessingState)
-
last
public boolean last(RowProcessingState rowProcessingState)
-
getValuesMapping
public JdbcValuesMapping getValuesMapping()
-
getCurrentRowValuesArray
public Object[] getCurrentRowValuesArray()
Description copied from interface:JdbcValues
Get the JDBC values 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.
-
release
protected void release()
- Specified by:
release
in classAbstractJdbcValues
-
setFetchSize
public void setFetchSize(int fetchSize)
-
-