Class AbstractJdbcValues
- java.lang.Object
-
- org.hibernate.sql.results.jdbc.internal.AbstractJdbcValues
-
- All Implemented Interfaces:
JdbcValues
- Direct Known Subclasses:
JdbcValuesCacheHit
,JdbcValuesResultSetImpl
public abstract class AbstractJdbcValues extends Object implements JdbcValues
-
-
Constructor Summary
Constructors Constructor Description AbstractJdbcValues()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description boolean
next(RowProcessingState rowProcessingState)
Advances the "cursor position" and returns a boolean indicating whether there is a row available to read viaJdbcValues.getCurrentRowValue(int)
.boolean
position(int position, RowProcessingState rowProcessingState)
Moves the "cursor position" to the specified positionboolean
previous(RowProcessingState rowProcessingState)
Advances the "cursor position" in reverse and returns a boolean indicating whether there is a row available to read viaJdbcValues.getCurrentRowValue(int)
.protected abstract boolean
processNext(RowProcessingState rowProcessingState)
protected abstract boolean
processPosition(int position, RowProcessingState rowProcessingState)
protected abstract boolean
processPrevious(RowProcessingState rowProcessingState)
protected abstract boolean
processScroll(int numberOfRows, RowProcessingState rowProcessingState)
boolean
scroll(int numberOfRows, RowProcessingState rowProcessingState)
Advances the "cursor position" the indicated number of rows and returns a boolean indicating whether there is a row available to read viaJdbcValues.getCurrentRowValue(int)
.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hibernate.sql.results.jdbc.spi.JdbcValues
afterLast, beforeFirst, finishRowProcessing, finishUp, first, getCurrentRowValue, getPosition, getResultCountEstimate, getValuesMapping, isAfterLast, isBeforeFirst, isFirst, isLast, last, setFetchSize, usesFollowOnLocking
-
-
-
-
Method Detail
-
next
public final boolean next(RowProcessingState rowProcessingState)
Description copied from interface:JdbcValues
Advances the "cursor position" and returns a boolean indicating whether there is a row available to read viaJdbcValues.getCurrentRowValue(int)
.- Specified by:
next
in interfaceJdbcValues
- Returns:
true
if there are results
-
processNext
protected abstract boolean processNext(RowProcessingState rowProcessingState)
-
previous
public boolean previous(RowProcessingState rowProcessingState)
Description copied from interface:JdbcValues
Advances the "cursor position" in reverse and returns a boolean indicating whether there is a row available to read viaJdbcValues.getCurrentRowValue(int)
.- Specified by:
previous
in interfaceJdbcValues
- Returns:
true
if there are results available
-
processPrevious
protected abstract boolean processPrevious(RowProcessingState rowProcessingState)
-
scroll
public boolean scroll(int numberOfRows, RowProcessingState rowProcessingState)
Description copied from interface:JdbcValues
Advances the "cursor position" the indicated number of rows and returns a boolean indicating whether there is a row available to read viaJdbcValues.getCurrentRowValue(int)
.- Specified by:
scroll
in interfaceJdbcValues
- Parameters:
numberOfRows
- The number of rows to advance. This can also be negative meaning to move in reverse- Returns:
true
if there are results available
-
processScroll
protected abstract boolean processScroll(int numberOfRows, RowProcessingState rowProcessingState)
-
position
public boolean position(int position, RowProcessingState rowProcessingState)
Description copied from interface:JdbcValues
Moves the "cursor position" to the specified position- Specified by:
position
in interfaceJdbcValues
-
processPosition
protected abstract boolean processPosition(int position, RowProcessingState rowProcessingState)
-
-