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
AnAbstractJdbcValuesimplementation 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 voidafterLast(RowProcessingState rowProcessingState)voidbeforeFirst(RowProcessingState rowProcessingState)voidfinishRowProcessing(RowProcessingState rowProcessingState)voidfinishUp(SharedSessionContractImplementor session)Give implementations a chance to finish processingbooleanfirst(RowProcessingState rowProcessingState)ObjectgetCurrentRowValue(int valueIndex)Get the JDBC value at the given index for the row currently positioned at within this source.Object[]getCurrentRowValuesArray()Get the JDBC values for the row currently positioned at within this source.intgetPosition()JdbcValuesMappinggetValuesMapping()booleanisAfterLast(RowProcessingState rowProcessingState)booleanisBeforeFirst(RowProcessingState rowProcessingState)booleanisFirst(RowProcessingState rowProcessingState)booleanisLast(RowProcessingState rowProcessingState)booleanlast(RowProcessingState rowProcessingState)protected booleanprocessNext(RowProcessingState rowProcessingState)protected booleanprocessPosition(int position, RowProcessingState rowProcessingState)protected booleanprocessPrevious(RowProcessingState rowProcessingState)protected booleanprocessScroll(int numberOfRows, RowProcessingState rowProcessingState)voidsetFetchSize(int fetchSize)-
Methods inherited from class org.hibernate.sql.results.jdbc.internal.AbstractJdbcValues
next, position, previous, scroll
-
-
-
-
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:
processNextin classAbstractJdbcValues
-
processPrevious
protected boolean processPrevious(RowProcessingState rowProcessingState)
- Specified by:
processPreviousin classAbstractJdbcValues
-
processScroll
protected boolean processScroll(int numberOfRows, RowProcessingState rowProcessingState)- Specified by:
processScrollin classAbstractJdbcValues
-
getPosition
public int getPosition()
-
processPosition
protected boolean processPosition(int position, RowProcessingState rowProcessingState)- Specified by:
processPositionin 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:JdbcValuesGet the JDBC values 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.
-
getCurrentRowValue
public Object getCurrentRowValue(int valueIndex)
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.
-
finishRowProcessing
public void finishRowProcessing(RowProcessingState rowProcessingState)
-
finishUp
public void finishUp(SharedSessionContractImplementor session)
Description copied from interface:JdbcValuesGive implementations a chance to finish processing
-
setFetchSize
public void setFetchSize(int fetchSize)
-
-