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 booleannext(RowProcessingState rowProcessingState)Advances the "cursor position" and returns a boolean indicating whether there is a row available to read viaJdbcValues.getCurrentRowValue(int).booleanposition(int position, RowProcessingState rowProcessingState)Moves the "cursor position" to the specified positionbooleanprevious(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 booleanprocessNext(RowProcessingState rowProcessingState)protected abstract booleanprocessPosition(int position, RowProcessingState rowProcessingState)protected abstract booleanprocessPrevious(RowProcessingState rowProcessingState)protected abstract booleanprocessScroll(int numberOfRows, RowProcessingState rowProcessingState)booleanscroll(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:JdbcValuesAdvances the "cursor position" and returns a boolean indicating whether there is a row available to read viaJdbcValues.getCurrentRowValue(int).- Specified by:
nextin interfaceJdbcValues- Returns:
trueif there are results
-
processNext
protected abstract boolean processNext(RowProcessingState rowProcessingState)
-
previous
public boolean previous(RowProcessingState rowProcessingState)
Description copied from interface:JdbcValuesAdvances the "cursor position" in reverse and returns a boolean indicating whether there is a row available to read viaJdbcValues.getCurrentRowValue(int).- Specified by:
previousin interfaceJdbcValues- Returns:
trueif there are results available
-
processPrevious
protected abstract boolean processPrevious(RowProcessingState rowProcessingState)
-
scroll
public boolean scroll(int numberOfRows, RowProcessingState rowProcessingState)Description copied from interface:JdbcValuesAdvances 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:
scrollin interfaceJdbcValues- Parameters:
numberOfRows- The number of rows to advance. This can also be negative meaning to move in reverse- Returns:
trueif 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:JdbcValuesMoves the "cursor position" to the specified position- Specified by:
positionin interfaceJdbcValues
-
processPosition
protected abstract boolean processPosition(int position, RowProcessingState rowProcessingState)
-
-