org.hibernate.ScrollableResults |
Known Indirect Subclasses |
A result iterator that allows moving around within the results
by arbitrary increments. The Query / ScrollableResults
pattern is very similar to the JDBC PreparedStatement/
ResultSet pattern and the semantics of methods of this interface
are similar to the similarly named methods on ResultSet.
Contrary to JDBC, columns of results are numbered from zero.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Go to a location just after the last result
| |||||||||||
Go to a location just before first result (this is the initial location)
| |||||||||||
Release resources immediately.
| |||||||||||
Go to the first result
| |||||||||||
Get the current row of results
| |||||||||||
Get the ith object in the current row of results, without
initializing any other results in the row.
| |||||||||||
Convenience method to read a big_decimal
| |||||||||||
Convenience method to read a big_integer
| |||||||||||
Convenience method to read a binary
| |||||||||||
Convenience method to read a blob
| |||||||||||
Convenience method to read a boolean
| |||||||||||
Convenience method to read a byte
| |||||||||||
Convenience method to read a calendar or calendar_date
| |||||||||||
Convenience method to read a character
| |||||||||||
Convenience method to read a clob
| |||||||||||
Convenience method to read a date, time or timestamp
| |||||||||||
Convenience method to read a double
| |||||||||||
Convenience method to read a float
| |||||||||||
Convenience method to read an integer
| |||||||||||
Convenience method to read a locale
| |||||||||||
Convenience method to read a long
| |||||||||||
Get the current location in the result set.
| |||||||||||
Convenience method to read a short
| |||||||||||
Convenience method to read a string
| |||||||||||
Convenience method to read text
| |||||||||||
Convenience method to read a timezone
| |||||||||||
Get the type of the ith column of results
| |||||||||||
Is this the first result?
| |||||||||||
Is this the last result?
| |||||||||||
Go to the last result
| |||||||||||
Advance to the next result
| |||||||||||
Retreat to the previous result
| |||||||||||
Scroll an arbitrary number of locations
| |||||||||||
Set the current location in the result set, numbered from either the
first row (row number 0), or the last row (row
number -1).
|
Go to a location just after the last result
HibernateException |
---|
Go to a location just before first result (this is the initial location)
HibernateException |
---|
Get the ith object in the current row of results, without initializing any other results in the row. This method may be used safely, regardless of the type of the column (ie. even for scalar results).
i | the column, numbered from zero |
---|
HibernateException |
---|
Convenience method to read a big_decimal
HibernateException |
---|
Convenience method to read a big_integer
HibernateException |
---|
Convenience method to read a binary
HibernateException |
---|
Convenience method to read a boolean
HibernateException |
---|
Convenience method to read a calendar or calendar_date
HibernateException |
---|
Convenience method to read a character
HibernateException |
---|
Convenience method to read a date, time or timestamp
HibernateException |
---|
Convenience method to read a double
HibernateException |
---|
Convenience method to read a float
HibernateException |
---|
Convenience method to read an integer
HibernateException |
---|
Convenience method to read a locale
HibernateException |
---|
Get the current location in the result set. The first row is number 0, contrary to JDBC.
HibernateException |
---|
Convenience method to read a short
HibernateException |
---|
Convenience method to read a string
HibernateException |
---|
Convenience method to read a timezone
HibernateException |
---|
Get the type of the ith column of results
i | the column, numbered from zero |
---|
Is this the first result?
HibernateException |
---|
Scroll an arbitrary number of locations
i | a positive (forward) or negative (backward) number of rows |
---|
HibernateException |
---|
Set the current location in the result set, numbered from either the first row (row number 0), or the last row (row number -1).
rowNumber | the row number, numbered from the last row, in the case of a negative row number |
---|
HibernateException |
---|