public class ScrollableResultsImpl extends AbstractScrollableResults implements ScrollableResults
| Constructor and Description |
|---|
ScrollableResultsImpl(ResultSet rs,
PreparedStatement ps,
SessionImplementor sess,
Loader loader,
QueryParameters queryParameters,
Type[] types,
HolderInstantiator holderInstantiator)
Constructs a ScrollableResultsImpl using the specified information.
|
| Modifier and Type | Method and Description |
|---|---|
void |
afterLast()
Go to a location just after the last result.
|
void |
beforeFirst()
Go to a location just before first result, This is the location of the cursor on a newly returned
scrollable result.
|
protected JDBCException |
convert(SQLException sqle,
String message) |
boolean |
first()
Go to the first result.
|
protected Object[] |
getCurrentRow() |
int |
getRowNumber()
Get the current position in the results.
|
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 i)
Scroll the specified number of positions from the current position.
|
boolean |
setRowNumber(int rowNumber)
Set the current position in the result set.
|
afterScrollOperation, close, get, get, getBigDecimal, getBigInteger, getBinary, getBlob, getBoolean, getByte, getCalendar, getCharacter, getClob, getDate, getDouble, getFinal, getFloat, getHolderInstantiator, getInteger, getLoader, getLocale, getLong, getNonFinal, getPs, getQueryParameters, getResultSet, getSession, getShort, getString, getText, getTimeZone, getType, getTypesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, get, get, getBigDecimal, getBigInteger, getBinary, getBlob, getBoolean, getByte, getCalendar, getCharacter, getClob, getDate, getDouble, getFloat, getInteger, getLocale, getLong, getShort, getString, getText, getTimeZone, getTypepublic ScrollableResultsImpl(ResultSet rs, PreparedStatement ps, SessionImplementor sess, Loader loader, QueryParameters queryParameters, Type[] types, HolderInstantiator holderInstantiator)
rs - The scrollable result setps - The prepared statement used to obtain the result setsess - The originating sessionloader - The loaderqueryParameters - query parameterstypes - The result typesholderInstantiator - Ughprotected Object[] getCurrentRow()
getCurrentRow in class AbstractScrollableResultspublic boolean scroll(int i)
ScrollableResultsscroll in interface ScrollableResultsi - a positive (forward) or negative (backward) number of rowstrue if there is a result at the new locationprotected JDBCException convert(SQLException sqle, String message)
public boolean first()
ScrollableResultsfirst in interface ScrollableResultstrue if there are any resultspublic boolean last()
ScrollableResultslast in interface ScrollableResultstrue if there are any resultspublic boolean next()
ScrollableResultsnext in interface ScrollableResultstrue if there is another resultpublic boolean previous()
ScrollableResultsprevious in interface ScrollableResultstrue if there is a previous resultpublic void afterLast()
ScrollableResultsafterLast in interface ScrollableResultspublic void beforeFirst()
ScrollableResultsbeforeFirst in interface ScrollableResultspublic boolean isFirst()
ScrollableResultsisFirst in interface ScrollableResultstrue if this is the first row of results, otherwise falsepublic boolean isLast()
ScrollableResultsisLast in interface ScrollableResultstrue if this is the last row of results.public int getRowNumber()
throws HibernateException
ScrollableResultsgetRowNumber in interface ScrollableResultsHibernateExceptionpublic boolean setRowNumber(int rowNumber)
throws HibernateException
ScrollableResultssetRowNumber in interface ScrollableResultsrowNumber - the row number. A positive number indicates a value numbered from the first row; a
negative number indicates a value numbered from the last row.HibernateExceptionCopyright © 2017 JBoss by Red Hat. All rights reserved.