public abstract class

AbstractScrollableResults

extends Object
implements ScrollableResults
java.lang.Object
   ↳ org.hibernate.impl.AbstractScrollableResults
Known Direct Subclasses

Class Overview

Implementation of the ScrollableResults interface

Summary

Public Constructors
AbstractScrollableResults(ResultSet rs, PreparedStatement ps, SessionImplementor sess, Loader loader, QueryParameters queryParameters, Type[] types, HolderInstantiator holderInstantiator)
Public Methods
final void close()
Release resources immediately.
final Object[] get()
Get the current row of results
final Object get(int col)
Get the ith object in the current row of results, without initializing any other results in the row.
final BigDecimal getBigDecimal(int col)
Convenience method to read a big_decimal
final BigInteger getBigInteger(int col)
Convenience method to read a big_integer
final byte[] getBinary(int col)
Convenience method to read a binary
final Blob getBlob(int col)
Convenience method to read a blob
final Boolean getBoolean(int col)
Convenience method to read a boolean
final Byte getByte(int col)
Convenience method to read a byte
final Calendar getCalendar(int col)
Convenience method to read a calendar or calendar_date
final Character getCharacter(int col)
Convenience method to read a character
final Clob getClob(int col)
Convenience method to read a clob
final Date getDate(int col)
Convenience method to read a date, time or timestamp
final Double getDouble(int col)
Convenience method to read a double
final Float getFloat(int col)
Convenience method to read a float
final Integer getInteger(int col)
Convenience method to read an integer
final Locale getLocale(int col)
Convenience method to read a locale
final Long getLong(int col)
Convenience method to read a long
final Short getShort(int col)
Convenience method to read a short
final String getString(int col)
Convenience method to read a string
final String getText(int col)
Convenience method to read text
final TimeZone getTimeZone(int col)
Convenience method to read a timezone
final Type getType(int i)
Get the type of the ith column of results
Protected Methods
void afterScrollOperation()
abstract Object[] getCurrentRow()
final Object getFinal(int col, Type returnType)
Check that the requested type is compatible with the result type, and return the column value.
HolderInstantiator getHolderInstantiator()
Loader getLoader()
final Object getNonFinal(int col, Type returnType)
Check that the requested type is compatible with the result type, and return the column value.
PreparedStatement getPs()
QueryParameters getQueryParameters()
ResultSet getResultSet()
SessionImplementor getSession()
Type[] getTypes()
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.hibernate.ScrollableResults

Public Constructors

public AbstractScrollableResults (ResultSet rs, PreparedStatement ps, SessionImplementor sess, Loader loader, QueryParameters queryParameters, Type[] types, HolderInstantiator holderInstantiator)

Public Methods

public final void close ()

Release resources immediately.

public final Object[] get ()

Get the current row of results

Returns
  • an object or array

public final Object get (int col)

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).

Parameters
col the column, numbered from zero
Returns
  • an object of any Hibernate type or null

public final BigDecimal getBigDecimal (int col)

Convenience method to read a big_decimal

public final BigInteger getBigInteger (int col)

Convenience method to read a big_integer

public final byte[] getBinary (int col)

Convenience method to read a binary

public final Blob getBlob (int col)

Convenience method to read a blob

public final Boolean getBoolean (int col)

Convenience method to read a boolean

public final Byte getByte (int col)

Convenience method to read a byte

public final Calendar getCalendar (int col)

Convenience method to read a calendar or calendar_date

public final Character getCharacter (int col)

Convenience method to read a character

public final Clob getClob (int col)

Convenience method to read a clob

public final Date getDate (int col)

Convenience method to read a date, time or timestamp

public final Double getDouble (int col)

Convenience method to read a double

public final Float getFloat (int col)

Convenience method to read a float

public final Integer getInteger (int col)

Convenience method to read an integer

public final Locale getLocale (int col)

Convenience method to read a locale

public final Long getLong (int col)

Convenience method to read a long

public final Short getShort (int col)

Convenience method to read a short

public final String getString (int col)

Convenience method to read a string

public final String getText (int col)

Convenience method to read text

public final TimeZone getTimeZone (int col)

Convenience method to read a timezone

public final Type getType (int i)

Get the type of the ith column of results

Parameters
i the column, numbered from zero
Returns
  • the Hibernate type

Protected Methods

protected void afterScrollOperation ()

protected abstract Object[] getCurrentRow ()

protected final Object getFinal (int col, Type returnType)

Check that the requested type is compatible with the result type, and return the column value. This version makes sure the the classes are identical.

Parameters
col the column
returnType a "final" type

protected HolderInstantiator getHolderInstantiator ()

protected Loader getLoader ()

protected final Object getNonFinal (int col, Type returnType)

Check that the requested type is compatible with the result type, and return the column value. This version makes sure the the classes are "assignable".

Parameters
col the column
returnType any type

protected PreparedStatement getPs ()

protected QueryParameters getQueryParameters ()

protected ResultSet getResultSet ()

protected SessionImplementor getSession ()

protected Type[] getTypes ()