public interface ScrollableResults
Query.scroll()| 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)
|
void |
close()
Release resources immediately.
|
boolean |
first()
Go to the first result
|
Object[] |
get()
Get the current row of results
|
Object |
get(int i)
Get the ith object in the current row of results, without
initializing any other results in the row.
|
BigDecimal |
getBigDecimal(int col)
Convenience method to read a big_decimal
|
BigInteger |
getBigInteger(int col)
Convenience method to read a big_integer
|
byte[] |
getBinary(int col)
Convenience method to read a binary
|
Blob |
getBlob(int col)
Convenience method to read a blob
|
Boolean |
getBoolean(int col)
Convenience method to read a boolean
|
Byte |
getByte(int col)
Convenience method to read a byte
|
Calendar |
getCalendar(int col)
Convenience method to read a calendar or calendar_date
|
Character |
getCharacter(int col)
Convenience method to read a character
|
Clob |
getClob(int col)
Convenience method to read a clob
|
Date |
getDate(int col)
Convenience method to read a date, time or timestamp
|
Double |
getDouble(int col)
Convenience method to read a double
|
Float |
getFloat(int col)
Convenience method to read a float
|
Integer |
getInteger(int col)
Convenience method to read an integer
|
Locale |
getLocale(int col)
Convenience method to read a locale
|
Long |
getLong(int col)
Convenience method to read a long
|
int |
getRowNumber()
Get the current location in the result set.
|
Short |
getShort(int col)
Convenience method to read a short
|
String |
getString(int col)
Convenience method to read a string
|
String |
getText(int col)
Convenience method to read text
|
TimeZone |
getTimeZone(int col)
Convenience method to read a timezone
|
Type |
getType(int i)
Get the type of the ith column of 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 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).
|
boolean next()
throws HibernateException
HibernateExceptionboolean previous()
throws HibernateException
HibernateExceptionboolean scroll(int i)
throws HibernateException
i - a positive (forward) or negative (backward) number of rowsHibernateExceptionboolean last()
throws HibernateException
HibernateExceptionboolean first()
throws HibernateException
HibernateExceptionvoid beforeFirst()
throws HibernateException
HibernateExceptionvoid afterLast()
throws HibernateException
HibernateExceptionboolean isFirst()
throws HibernateException
HibernateExceptionboolean isLast()
throws HibernateException
HibernateExceptionvoid close()
throws HibernateException
HibernateExceptionObject[] get() throws HibernateException
HibernateExceptionObject get(int i) throws HibernateException
i - the column, numbered from zeroHibernateExceptionType getType(int i)
i - the column, numbered from zeroInteger getInteger(int col) throws HibernateException
HibernateExceptionLong getLong(int col) throws HibernateException
HibernateExceptionFloat getFloat(int col) throws HibernateException
HibernateExceptionBoolean getBoolean(int col) throws HibernateException
HibernateExceptionDouble getDouble(int col) throws HibernateException
HibernateExceptionShort getShort(int col) throws HibernateException
HibernateExceptionByte getByte(int col) throws HibernateException
HibernateExceptionCharacter getCharacter(int col) throws HibernateException
HibernateExceptionbyte[] getBinary(int col)
throws HibernateException
HibernateExceptionString getText(int col) throws HibernateException
HibernateExceptionBlob getBlob(int col) throws HibernateException
HibernateExceptionClob getClob(int col) throws HibernateException
HibernateExceptionString getString(int col) throws HibernateException
HibernateExceptionBigDecimal getBigDecimal(int col) throws HibernateException
HibernateExceptionBigInteger getBigInteger(int col) throws HibernateException
HibernateExceptionDate getDate(int col) throws HibernateException
HibernateExceptionLocale getLocale(int col) throws HibernateException
HibernateExceptionCalendar getCalendar(int col) throws HibernateException
HibernateExceptionTimeZone getTimeZone(int col) throws HibernateException
HibernateExceptionint getRowNumber()
throws HibernateException
HibernateExceptionboolean setRowNumber(int rowNumber)
throws HibernateException
rowNumber - the row number, numbered from the last row, in the
case of a negative row numberHibernateExceptionCopyright © 2018 JBoss by Red Hat. All rights reserved.