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) |
| 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 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 i)
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, 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) throws MappingException
MappingExceptionprotected Object[] getCurrentRow()
getCurrentRow in class AbstractScrollableResultspublic boolean scroll(int i)
throws HibernateException
ScrollableResultsscroll in interface ScrollableResultsi - a positive (forward) or negative (backward) number of rowsHibernateExceptionScrollableResults.scroll(int)public boolean first()
throws HibernateException
ScrollableResultsfirst in interface ScrollableResultsHibernateExceptionScrollableResults.first()public boolean last()
throws HibernateException
ScrollableResultslast in interface ScrollableResultsHibernateExceptionScrollableResults.last()public boolean next()
throws HibernateException
ScrollableResultsnext in interface ScrollableResultsHibernateExceptionScrollableResults.next()public boolean previous()
throws HibernateException
ScrollableResultsprevious in interface ScrollableResultsHibernateExceptionScrollableResults.previous()public void afterLast()
throws HibernateException
ScrollableResultsafterLast in interface ScrollableResultsHibernateExceptionScrollableResults.afterLast()public void beforeFirst()
throws HibernateException
ScrollableResultsbeforeFirst in interface ScrollableResultsHibernateExceptionScrollableResults.beforeFirst()public boolean isFirst()
throws HibernateException
ScrollableResultsisFirst in interface ScrollableResultsHibernateExceptionScrollableResults.isFirst()public boolean isLast()
throws HibernateException
ScrollableResultsisLast in interface ScrollableResultsHibernateExceptionScrollableResults.isLast()public int getRowNumber()
throws HibernateException
ScrollableResultsgetRowNumber in interface ScrollableResultsHibernateExceptionpublic boolean setRowNumber(int rowNumber)
throws HibernateException
ScrollableResultssetRowNumber in interface ScrollableResultsrowNumber - the row number, numbered from the last row, in the
case of a negative row numberHibernateExceptionCopyright © 2018 JBoss by Red Hat. All rights reserved.