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
|
java.lang.Object[] |
get()
Get the current row of results
|
java.lang.Object |
get(int i)
Get the ith object in the current row of results, without
initializing any other results in the row.
|
java.math.BigDecimal |
getBigDecimal(int col)
Convenience method to read a big_decimal
|
java.math.BigInteger |
getBigInteger(int col)
Convenience method to read a big_integer
|
byte[] |
getBinary(int col)
Convenience method to read a binary
|
java.sql.Blob |
getBlob(int col)
Convenience method to read a blob
|
java.lang.Boolean |
getBoolean(int col)
Convenience method to read a boolean
|
java.lang.Byte |
getByte(int col)
Convenience method to read a byte
|
java.util.Calendar |
getCalendar(int col)
Convenience method to read a calendar or calendar_date
|
java.lang.Character |
getCharacter(int col)
Convenience method to read a character
|
java.sql.Clob |
getClob(int col)
Convenience method to read a clob
|
java.util.Date |
getDate(int col)
Convenience method to read a date, time or timestamp
|
java.lang.Double |
getDouble(int col)
Convenience method to read a double
|
java.lang.Float |
getFloat(int col)
Convenience method to read a float
|
java.lang.Integer |
getInteger(int col)
Convenience method to read an integer
|
java.util.Locale |
getLocale(int col)
Convenience method to read a locale
|
java.lang.Long |
getLong(int col)
Convenience method to read a long
|
int |
getRowNumber()
Get the current location in the result set.
|
java.lang.Short |
getShort(int col)
Convenience method to read a short
|
java.lang.String |
getString(int col)
Convenience method to read a string
|
java.lang.String |
getText(int col)
Convenience method to read text
|
java.util.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
HibernateExceptionjava.lang.Object[] get()
throws HibernateException
HibernateExceptionjava.lang.Object get(int i)
throws HibernateException
i - the column, numbered from zeroHibernateExceptionType getType(int i)
i - the column, numbered from zerojava.lang.Integer getInteger(int col)
throws HibernateException
HibernateExceptionjava.lang.Long getLong(int col)
throws HibernateException
HibernateExceptionjava.lang.Float getFloat(int col)
throws HibernateException
HibernateExceptionjava.lang.Boolean getBoolean(int col)
throws HibernateException
HibernateExceptionjava.lang.Double getDouble(int col)
throws HibernateException
HibernateExceptionjava.lang.Short getShort(int col)
throws HibernateException
HibernateExceptionjava.lang.Byte getByte(int col)
throws HibernateException
HibernateExceptionjava.lang.Character getCharacter(int col)
throws HibernateException
HibernateExceptionbyte[] getBinary(int col)
throws HibernateException
HibernateExceptionjava.lang.String getText(int col)
throws HibernateException
HibernateExceptionjava.sql.Blob getBlob(int col)
throws HibernateException
HibernateExceptionjava.sql.Clob getClob(int col)
throws HibernateException
HibernateExceptionjava.lang.String getString(int col)
throws HibernateException
HibernateExceptionjava.math.BigDecimal getBigDecimal(int col)
throws HibernateException
HibernateExceptionjava.math.BigInteger getBigInteger(int col)
throws HibernateException
HibernateExceptionjava.util.Date getDate(int col)
throws HibernateException
HibernateExceptionjava.util.Locale getLocale(int col)
throws HibernateException
HibernateExceptionjava.util.Calendar getCalendar(int col)
throws HibernateException
HibernateExceptionjava.util.TimeZone 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 © 2013. All Rights Reserved.