|
|||||||||
| Home >> All >> org >> hibernate >> [ impl overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.hibernate.impl
Class ScrollableResultsImpl

java.lang.Objectorg.hibernate.impl.AbstractScrollableResults
org.hibernate.impl.ScrollableResultsImpl
- All Implemented Interfaces:
- org.hibernate.ScrollableResults
- public class ScrollableResultsImpl
- extends AbstractScrollableResults
- implements org.hibernate.ScrollableResults
- extends AbstractScrollableResults
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:
getCurrentRowin classAbstractScrollableResults
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:
scrollin interfaceorg.hibernate.ScrollableResults
first
public boolean first()
throws org.hibernate.HibernateException
- Description copied from interface:
org.hibernate.ScrollableResults - Go to the first result
- Specified by:
firstin interfaceorg.hibernate.ScrollableResults
last
public boolean last()
throws org.hibernate.HibernateException
- Description copied from interface:
org.hibernate.ScrollableResults - Go to the last result
- Specified by:
lastin interfaceorg.hibernate.ScrollableResults
next
public boolean next()
throws org.hibernate.HibernateException
- Description copied from interface:
org.hibernate.ScrollableResults - Advance to the next result
- Specified by:
nextin interfaceorg.hibernate.ScrollableResults
previous
public boolean previous()
throws org.hibernate.HibernateException
- Description copied from interface:
org.hibernate.ScrollableResults - Retreat to the previous result
- Specified by:
previousin interfaceorg.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:
afterLastin interfaceorg.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:
beforeFirstin interfaceorg.hibernate.ScrollableResults
isFirst
public boolean isFirst()
throws org.hibernate.HibernateException
- Description copied from interface:
org.hibernate.ScrollableResults - Is this the first result?
- Specified by:
isFirstin interfaceorg.hibernate.ScrollableResults
isLast
public boolean isLast()
throws org.hibernate.HibernateException
- Description copied from interface:
org.hibernate.ScrollableResults - Is this the last result?
- Specified by:
isLastin interfaceorg.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:
getRowNumberin interfaceorg.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:
setRowNumberin interfaceorg.hibernate.ScrollableResults
prepareCurrentRow
private void prepareCurrentRow(boolean underlyingScrollSuccessful)
throws org.hibernate.HibernateException
|
|||||||||
| Home >> All >> org >> hibernate >> [ impl overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC