org.hibernate.impl
Class FetchingScrollableResultsImpl
- ScrollableResults
public class FetchingScrollableResultsImpl
Implementation of ScrollableResults which can handle collection fetches.
void | afterLast() - Go to a location just after the last result
|
void | beforeFirst() - Go to a location just before first result (this is the initial location)
|
boolean | first() - Go to the first result
|
protected Object[] | getCurrentRow()
|
int | getRowNumber() - Get the current location in the result set.
|
boolean | isFirst() - Is this the first result?
|
boolean | isLast() - Is this the last result?
|
boolean | last() - Go to the last result
|
boolean | next() - Advance to the next result
|
boolean | previous() - Retreat to the previous result
|
boolean | scroll(int positions) - Scroll an arbitrary number of locations
|
boolean | setRowNumber(int rowNumber) - Set the current location in the result set, numbered from either the first row (row number 0), or the last
row (row number -1).
|
afterScrollOperation , close , get , get , getBigDecimal , getBigInteger , getBinary , getBlob , getBoolean , getByte , getCalendar , getCharacter , getClob , getCurrentRow , getDate , getDouble , getFinal , getFloat , getHolderInstantiator , getInteger , getLoader , getLocale , getLong , getNonFinal , getPs , getQueryParameters , getResultSet , getSession , getShort , getString , getText , getTimeZone , getType , getTypes |
getRowNumber
public int getRowNumber()
throws HibernateException
Get the current location in the result set. The first row is number 0, contrary to JDBC.
- getRowNumber in interface ScrollableResults
- the row number, numbered from 0, or -1 if there is no current row
scroll
public boolean scroll(int positions)
throws HibernateException
Scroll an arbitrary number of locations
- scroll in interface ScrollableResults
positions
- a positive (forward) or negative (backward) number of rows
- true if there is a result at the new location
setRowNumber
public boolean setRowNumber(int rowNumber)
throws HibernateException
Set the current location in the result set, numbered from either the first row (row number 0), or the last
row (row number -1).
- setRowNumber in interface ScrollableResults
rowNumber
- the row number, numbered from the last row, in the case of a negative row number
- true if there is a row at that row number