public class FetchingScrollableResultsImpl extends AbstractScrollableResults
| Constructor and Description |
|---|
FetchingScrollableResultsImpl(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 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, getDate, getDouble, getFinal, getFloat, getHolderInstantiator, getInteger, getLoader, getLocale, getLong, getNonFinal, getPs, getQueryParameters, getResultSet, getSession, getShort, getString, getText, getTimeZone, getType, getTypespublic FetchingScrollableResultsImpl(ResultSet rs, PreparedStatement ps, SessionImplementor sess, Loader loader, QueryParameters queryParameters, Type[] types, HolderInstantiator holderInstantiator) throws MappingException
MappingExceptionprotected Object[] getCurrentRow()
getCurrentRow in class AbstractScrollableResultspublic boolean next()
throws HibernateException
HibernateExceptionpublic boolean previous()
throws HibernateException
HibernateExceptionpublic boolean scroll(int positions)
throws HibernateException
positions - a positive (forward) or negative (backward) number of rowsHibernateExceptionpublic boolean last()
throws HibernateException
HibernateExceptionpublic boolean first()
throws HibernateException
HibernateExceptionpublic void beforeFirst()
throws HibernateException
HibernateExceptionpublic void afterLast()
throws HibernateException
HibernateExceptionpublic boolean isFirst()
throws HibernateException
HibernateExceptionpublic boolean isLast()
throws HibernateException
HibernateExceptionpublic int getRowNumber()
throws HibernateException
HibernateExceptionpublic boolean setRowNumber(int rowNumber)
throws HibernateException
rowNumber - the row number, numbered from the last row, in the case of a negative row numberHibernateExceptionCopyright © 2012 JBoss by Red Hat. All Rights Reserved.