org.hibernate
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
HibernateException
boolean previous() throws HibernateException
HibernateException
boolean scroll(int i) throws HibernateException
i
- a positive (forward) or negative (backward) number of rowsHibernateException
boolean last() throws HibernateException
HibernateException
boolean first() throws HibernateException
HibernateException
void beforeFirst() throws HibernateException
HibernateException
void afterLast() throws HibernateException
HibernateException
boolean isFirst() throws HibernateException
HibernateException
boolean isLast() throws HibernateException
HibernateException
void close() throws HibernateException
HibernateException
java.lang.Object[] get() throws HibernateException
HibernateException
java.lang.Object get(int i) throws HibernateException
i
- the column, numbered from zeroHibernateException
Type getType(int i)
i
- the column, numbered from zerojava.lang.Integer getInteger(int col) throws HibernateException
HibernateException
java.lang.Long getLong(int col) throws HibernateException
HibernateException
java.lang.Float getFloat(int col) throws HibernateException
HibernateException
java.lang.Boolean getBoolean(int col) throws HibernateException
HibernateException
java.lang.Double getDouble(int col) throws HibernateException
HibernateException
java.lang.Short getShort(int col) throws HibernateException
HibernateException
java.lang.Byte getByte(int col) throws HibernateException
HibernateException
java.lang.Character getCharacter(int col) throws HibernateException
HibernateException
byte[] getBinary(int col) throws HibernateException
HibernateException
java.lang.String getText(int col) throws HibernateException
HibernateException
java.sql.Blob getBlob(int col) throws HibernateException
HibernateException
java.sql.Clob getClob(int col) throws HibernateException
HibernateException
java.lang.String getString(int col) throws HibernateException
HibernateException
java.math.BigDecimal getBigDecimal(int col) throws HibernateException
HibernateException
java.math.BigInteger getBigInteger(int col) throws HibernateException
HibernateException
java.util.Date getDate(int col) throws HibernateException
HibernateException
java.util.Locale getLocale(int col) throws HibernateException
HibernateException
java.util.Calendar getCalendar(int col) throws HibernateException
HibernateException
java.util.TimeZone getTimeZone(int col) throws HibernateException
HibernateException
int getRowNumber() throws HibernateException
HibernateException
boolean setRowNumber(int rowNumber) throws HibernateException
rowNumber
- the row number, numbered from the last row, in the
case of a negative row numberHibernateException
Copyright © 2014. All Rights Reserved.