| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hibernate.impl.AbstractScrollableResults
org.hibernate.impl.ScrollableResultsImpl
public class ScrollableResultsImpl
Implementation of the ScrollableResults interface
| Constructor Summary | |
|---|---|
| ScrollableResultsImpl(ResultSet rs,
                      PreparedStatement ps,
                      SessionImplementor sess,
                      Loader loader,
                      QueryParameters queryParameters,
                      Type[] types,
                      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  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 | 
|  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 | 
| Constructor Detail | 
|---|
public ScrollableResultsImpl(ResultSet rs,
                             PreparedStatement ps,
                             SessionImplementor sess,
                             Loader loader,
                             QueryParameters queryParameters,
                             Type[] types,
                             HolderInstantiator holderInstantiator)
                      throws MappingException
MappingException| Method Detail | 
|---|
protected Object[] getCurrentRow()
getCurrentRow in class AbstractScrollableResults
public boolean scroll(int i)
               throws HibernateException
ScrollableResults
scroll in interface ScrollableResultsi - a positive (forward) or negative (backward) number of rows
HibernateExceptionScrollableResults.scroll(int)
public boolean first()
              throws HibernateException
ScrollableResults
first in interface ScrollableResultsHibernateExceptionScrollableResults.first()
public boolean last()
             throws HibernateException
ScrollableResults
last in interface ScrollableResultsHibernateExceptionScrollableResults.last()
public boolean next()
             throws HibernateException
ScrollableResults
next in interface ScrollableResultsHibernateExceptionScrollableResults.next()
public boolean previous()
                 throws HibernateException
ScrollableResults
previous in interface ScrollableResultsHibernateExceptionScrollableResults.previous()
public void afterLast()
               throws HibernateException
ScrollableResults
afterLast in interface ScrollableResultsHibernateExceptionScrollableResults.afterLast()
public void beforeFirst()
                 throws HibernateException
ScrollableResults
beforeFirst in interface ScrollableResultsHibernateExceptionScrollableResults.beforeFirst()
public boolean isFirst()
                throws HibernateException
ScrollableResults
isFirst in interface ScrollableResultsHibernateExceptionScrollableResults.isFirst()
public boolean isLast()
               throws HibernateException
ScrollableResults
isLast in interface ScrollableResultsHibernateExceptionScrollableResults.isLast()
public int getRowNumber()
                 throws HibernateException
ScrollableResults
getRowNumber in interface ScrollableResultsHibernateException
public boolean setRowNumber(int rowNumber)
                     throws HibernateException
ScrollableResults
setRowNumber in interface ScrollableResultsrowNumber - the row number, numbered from the last row, in the
 case of a negative row number
HibernateException| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||