Class JdbcValuesResultSetImpl
- java.lang.Object
-
- org.hibernate.sql.results.jdbc.internal.AbstractJdbcValues
-
- org.hibernate.sql.results.jdbc.internal.JdbcValuesResultSetImpl
-
- All Implemented Interfaces:
JdbcValues
public class JdbcValuesResultSetImpl extends AbstractJdbcValues
AbstractJdbcValuesimplementation for a JDBCResultSetas the source
-
-
Constructor Summary
Constructors Constructor Description JdbcValuesResultSetImpl(ResultSetAccess resultSetAccess, QueryKey queryCacheKey, String queryIdentifier, QueryOptions queryOptions, boolean usesFollowOnLocking, JdbcValuesMapping valuesMapping, CachedJdbcValuesMetadata metadataForCache, ExecutionContext executionContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterLast(RowProcessingState rowProcessingState)voidbeforeFirst(RowProcessingState rowProcessingState)voidfinishRowProcessing(RowProcessingState rowProcessingState, boolean wasAdded)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.intgetPosition()intgetResultCountEstimate()The estimate for the amount of results that can be expected for pre-sizing collections.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)voidreadCurrentRowValues()voidsetFetchSize(int fetchSize)booleanusesFollowOnLocking()-
Methods inherited from class org.hibernate.sql.results.jdbc.internal.AbstractJdbcValues
next, position, previous, scroll
-
-
-
-
Constructor Detail
-
JdbcValuesResultSetImpl
public JdbcValuesResultSetImpl(ResultSetAccess resultSetAccess, QueryKey queryCacheKey, String queryIdentifier, QueryOptions queryOptions, boolean usesFollowOnLocking, JdbcValuesMapping valuesMapping, CachedJdbcValuesMetadata metadataForCache, ExecutionContext executionContext)
-
-
Method Detail
-
processNext
protected final 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)
-
readCurrentRowValues
public void readCurrentRowValues()
-
finishUp
public final void finishUp(SharedSessionContractImplementor session)
Description copied from interface:JdbcValuesGive implementations a chance to finish processing
-
getValuesMapping
public JdbcValuesMapping getValuesMapping()
-
usesFollowOnLocking
public boolean usesFollowOnLocking()
-
finishRowProcessing
public void finishRowProcessing(RowProcessingState rowProcessingState, boolean wasAdded)
-
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.
-
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.
-
-