org.hibernate.impl

Class ScrollableResultsImpl

Implemented Interfaces:
ScrollableResults

public class ScrollableResultsImpl
extends AbstractScrollableResults
implements ScrollableResults

Implementation of the ScrollableResults interface
Author:
Gavin King

Constructor Summary

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

Method Summary

void
afterLast()
void
beforeFirst()
boolean
first()
protected Object[]
getCurrentRow()
int
getRowNumber()
boolean
isFirst()
boolean
isLast()
boolean
last()
boolean
next()
boolean
previous()
boolean
scroll(int i)
boolean
setRowNumber(int rowNumber)

Methods inherited from class org.hibernate.impl.AbstractScrollableResults

afterScrollOperation, close, get, get, getBigDecimal, getBigInteger, getBinary, getBlob, getBoolean, getByte, getCalendar, getCharacter, getClob, getCurrentRow, getDate, getDouble, getFinal, getFloat, getHolderInstantiator, getInteger, getLoader, getLocale, getLong, getNonFinal, getPs, getQueryParameters, getResultSet, getSession, getShort, getString, getText, getTimeZone, getType, getTypes

Constructor Details

ScrollableResultsImpl

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

Method Details

afterLast

public void afterLast()
            throws HibernateException
Specified by:
afterLast in interface ScrollableResults

beforeFirst

public void beforeFirst()
            throws HibernateException
Specified by:
beforeFirst in interface ScrollableResults

first

public boolean first()
            throws HibernateException
Specified by:
first in interface ScrollableResults

getCurrentRow

protected Object[] getCurrentRow()
Overrides:
getCurrentRow in interface AbstractScrollableResults

getRowNumber

public int getRowNumber()
            throws HibernateException
Specified by:
getRowNumber in interface ScrollableResults

isFirst

public boolean isFirst()
            throws HibernateException
Specified by:
isFirst in interface ScrollableResults

isLast

public boolean isLast()
            throws HibernateException
Specified by:
isLast in interface ScrollableResults

last

public boolean last()
            throws HibernateException
Specified by:
last in interface ScrollableResults

next

public boolean next()
            throws HibernateException
Specified by:
next in interface ScrollableResults

previous

public boolean previous()
            throws HibernateException
Specified by:
previous in interface ScrollableResults

scroll

public boolean scroll(int i)
            throws HibernateException
Specified by:
scroll in interface ScrollableResults

setRowNumber

public boolean setRowNumber(int rowNumber)
            throws HibernateException
Specified by:
setRowNumber in interface ScrollableResults