Package org.hibernate

Interface ScrollableResults

All Known Implementing Classes:
AbstractScrollableResults, FetchingScrollableResultsImpl, ScrollableResultsImpl

public interface ScrollableResults
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.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Go to a location just after the last result
    void
    Go to a location just before first result (this is the initial location)
    void
    Release resources immediately.
    boolean
    Go to the first result
    get()
    Get the current row of results
    get(int i)
    Get the ith object in the current row of results, without initializing any other results in the row.
    getBigDecimal(int col)
    Convenience method to read a big_decimal
    getBigInteger(int col)
    Convenience method to read a big_integer
    byte[]
    getBinary(int col)
    Convenience method to read a binary
    getBlob(int col)
    Convenience method to read a blob
    getBoolean(int col)
    Convenience method to read a boolean
    getByte(int col)
    Convenience method to read a byte
    getCalendar(int col)
    Convenience method to read a calendar or calendar_date
    getCharacter(int col)
    Convenience method to read a character
    getClob(int col)
    Convenience method to read a clob
    getDate(int col)
    Convenience method to read a date, time or timestamp
    getDouble(int col)
    Convenience method to read a double
    getFloat(int col)
    Convenience method to read a float
    getInteger(int col)
    Convenience method to read an integer
    getLocale(int col)
    Convenience method to read a locale
    getLong(int col)
    Convenience method to read a long
    int
    Get the current location in the result set.
    getShort(int col)
    Convenience method to read a short
    getString(int col)
    Convenience method to read a string
    getText(int col)
    Convenience method to read text
    getTimeZone(int col)
    Convenience method to read a timezone
    getType(int i)
    Get the type of the ith column of results
    boolean
    Is this the first result?
    boolean
    Is this the last result?
    boolean
    Go to the last result
    boolean
    Advance to the next result
    boolean
    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).