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
AbstractJdbcValues
implementation for a JDBCResultSet
as 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 void
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)
Object
getCurrentRowValue(int valueIndex)
Get the JDBC value at the given index for the row currently positioned at within this source.int
getPosition()
int
getResultCountEstimate()
The estimate for the amount of results that can be expected for pre-sizing collections.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)
void
readCurrentRowValues()
void
setFetchSize(int fetchSize)
boolean
usesFollowOnLocking()
-
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:
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)
-
readCurrentRowValues
public void readCurrentRowValues()
-
finishUp
public final void finishUp(SharedSessionContractImplementor session)
Description copied from interface:JdbcValues
Give 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: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.
-
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.
-
-