Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.hibernate.impl
Class ScrollableResultsImpl  view ScrollableResultsImpl download ScrollableResultsImpl.java

java.lang.Object
  extended byorg.hibernate.impl.AbstractScrollableResults
      extended byorg.hibernate.impl.ScrollableResultsImpl
All Implemented Interfaces:
org.hibernate.ScrollableResults

public class ScrollableResultsImpl
extends AbstractScrollableResults
implements org.hibernate.ScrollableResults

Implementation of the ScrollableResults interface


Field Summary
private  java.lang.Object[] currentRow
           
 
Fields inherited from class org.hibernate.impl.AbstractScrollableResults
 
Constructor Summary
ScrollableResultsImpl(java.sql.ResultSet rs, java.sql.PreparedStatement ps, org.hibernate.engine.SessionImplementor sess, org.hibernate.loader.Loader loader, org.hibernate.engine.QueryParameters queryParameters, org.hibernate.type.Type[] types, org.hibernate.hql.HolderInstantiator holderInstantiator)
           
 
Method Summary
 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)
 boolean first()
          Go to the first result
protected  java.lang.Object[] getCurrentRow()
           
 int getRowNumber()
          Get the current location in the result set.
 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
private  void prepareCurrentRow(boolean underlyingScrollSuccessful)
           
 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).
 
Methods inherited from class org.hibernate.impl.AbstractScrollableResults
afterScrollOperation, close, get, get, getBigDecimal, getBigInteger, getBinary, getBlob, getBoolean, getByte, getCalendar, getCharacter, getClob, getDate, getDouble, getFinal, getFloat, getHolderInstantiator, getInteger, getLoader, getLocale, getLong, getNonFinal, getPs, getQueryParameters, getResultSet, getSession, getShort, getString, getText, getTimeZone, getType, getTypes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.hibernate.ScrollableResults
close, get, get, getBigDecimal, getBigInteger, getBinary, getBlob, getBoolean, getByte, getCalendar, getCharacter, getClob, getDate, getDouble, getFloat, getInteger, getLocale, getLong, getShort, getString, getText, getTimeZone, getType
 

Field Detail

currentRow

private java.lang.Object[] currentRow
Constructor Detail

ScrollableResultsImpl

public ScrollableResultsImpl(java.sql.ResultSet rs,
                             java.sql.PreparedStatement ps,
                             org.hibernate.engine.SessionImplementor sess,
                             org.hibernate.loader.Loader loader,
                             org.hibernate.engine.QueryParameters queryParameters,
                             org.hibernate.type.Type[] types,
                             org.hibernate.hql.HolderInstantiator holderInstantiator)
                      throws org.hibernate.MappingException
Method Detail

getCurrentRow

protected java.lang.Object[] getCurrentRow()
Specified by:
getCurrentRow in class AbstractScrollableResults

scroll

public boolean scroll(int i)
               throws org.hibernate.HibernateException
Description copied from interface: org.hibernate.ScrollableResults
Scroll an arbitrary number of locations

Specified by:
scroll in interface org.hibernate.ScrollableResults

first

public boolean first()
              throws org.hibernate.HibernateException
Description copied from interface: org.hibernate.ScrollableResults
Go to the first result

Specified by:
first in interface org.hibernate.ScrollableResults

last

public boolean last()
             throws org.hibernate.HibernateException
Description copied from interface: org.hibernate.ScrollableResults
Go to the last result

Specified by:
last in interface org.hibernate.ScrollableResults

next

public boolean next()
             throws org.hibernate.HibernateException
Description copied from interface: org.hibernate.ScrollableResults
Advance to the next result

Specified by:
next in interface org.hibernate.ScrollableResults

previous

public boolean previous()
                 throws org.hibernate.HibernateException
Description copied from interface: org.hibernate.ScrollableResults
Retreat to the previous result

Specified by:
previous in interface org.hibernate.ScrollableResults

afterLast

public void afterLast()
               throws org.hibernate.HibernateException
Description copied from interface: org.hibernate.ScrollableResults
Go to a location just after the last result

Specified by:
afterLast in interface org.hibernate.ScrollableResults

beforeFirst

public void beforeFirst()
                 throws org.hibernate.HibernateException
Description copied from interface: org.hibernate.ScrollableResults
Go to a location just before first result (this is the initial location)

Specified by:
beforeFirst in interface org.hibernate.ScrollableResults

isFirst

public boolean isFirst()
                throws org.hibernate.HibernateException
Description copied from interface: org.hibernate.ScrollableResults
Is this the first result?

Specified by:
isFirst in interface org.hibernate.ScrollableResults

isLast

public boolean isLast()
               throws org.hibernate.HibernateException
Description copied from interface: org.hibernate.ScrollableResults
Is this the last result?

Specified by:
isLast in interface org.hibernate.ScrollableResults

getRowNumber

public int getRowNumber()
                 throws org.hibernate.HibernateException
Description copied from interface: org.hibernate.ScrollableResults
Get the current location in the result set. The first row is number 0, contrary to JDBC.

Specified by:
getRowNumber in interface org.hibernate.ScrollableResults

setRowNumber

public boolean setRowNumber(int rowNumber)
                     throws org.hibernate.HibernateException
Description copied from interface: org.hibernate.ScrollableResults
Set the current location in the result set, numbered from either the first row (row number 0), or the last row (row number -1).

Specified by:
setRowNumber in interface org.hibernate.ScrollableResults

prepareCurrentRow

private void prepareCurrentRow(boolean underlyingScrollSuccessful)
                        throws org.hibernate.HibernateException