|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hibernate.impl.AbstractScrollableResults
public abstract class AbstractScrollableResults
Implementation of the ScrollableResults interface
| Constructor Summary | |
|---|---|
AbstractScrollableResults(java.sql.ResultSet rs,
java.sql.PreparedStatement ps,
SessionImplementor sess,
Loader loader,
QueryParameters queryParameters,
Type[] types,
HolderInstantiator holderInstantiator)
|
|
| Method Summary | |
|---|---|
protected void |
afterScrollOperation()
|
void |
close()
Release resources immediately. |
java.lang.Object[] |
get()
Get the current row of results |
java.lang.Object |
get(int col)
Get the ith object in the current row of results, without initializing any other results in the row. |
java.math.BigDecimal |
getBigDecimal(int col)
Convenience method to read a big_decimal |
java.math.BigInteger |
getBigInteger(int col)
Convenience method to read a big_integer |
byte[] |
getBinary(int col)
Convenience method to read a binary |
java.sql.Blob |
getBlob(int col)
Convenience method to read a blob |
java.lang.Boolean |
getBoolean(int col)
Convenience method to read a boolean |
java.lang.Byte |
getByte(int col)
Convenience method to read a byte |
java.util.Calendar |
getCalendar(int col)
Convenience method to read a calendar or calendar_date |
java.lang.Character |
getCharacter(int col)
Convenience method to read a character |
java.sql.Clob |
getClob(int col)
Convenience method to read a clob |
protected abstract java.lang.Object[] |
getCurrentRow()
|
java.util.Date |
getDate(int col)
Convenience method to read a date, time or timestamp |
java.lang.Double |
getDouble(int col)
Convenience method to read a double |
protected java.lang.Object |
getFinal(int col,
Type returnType)
Check that the requested type is compatible with the result type, and return the column value. |
java.lang.Float |
getFloat(int col)
Convenience method to read a float |
protected HolderInstantiator |
getHolderInstantiator()
|
java.lang.Integer |
getInteger(int col)
Convenience method to read an integer |
protected Loader |
getLoader()
|
java.util.Locale |
getLocale(int col)
Convenience method to read a locale |
java.lang.Long |
getLong(int col)
Convenience method to read a long |
protected java.lang.Object |
getNonFinal(int col,
Type returnType)
Check that the requested type is compatible with the result type, and return the column value. |
protected java.sql.PreparedStatement |
getPs()
|
protected QueryParameters |
getQueryParameters()
|
protected java.sql.ResultSet |
getResultSet()
|
protected SessionImplementor |
getSession()
|
java.lang.Short |
getShort(int col)
Convenience method to read a short |
java.lang.String |
getString(int col)
Convenience method to read a string |
java.lang.String |
getText(int col)
Convenience method to read text |
java.util.TimeZone |
getTimeZone(int col)
Convenience method to read a timezone |
Type |
getType(int i)
Get the type of the ith column of results |
protected Type[] |
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 |
|---|
afterLast, beforeFirst, first, getRowNumber, isFirst, isLast, last, next, previous, scroll, setRowNumber |
| Constructor Detail |
|---|
public AbstractScrollableResults(java.sql.ResultSet rs,
java.sql.PreparedStatement ps,
SessionImplementor sess,
Loader loader,
QueryParameters queryParameters,
Type[] types,
HolderInstantiator holderInstantiator)
throws MappingException
MappingException| Method Detail |
|---|
protected abstract java.lang.Object[] getCurrentRow()
protected java.sql.ResultSet getResultSet()
protected java.sql.PreparedStatement getPs()
protected SessionImplementor getSession()
protected Loader getLoader()
protected QueryParameters getQueryParameters()
protected Type[] getTypes()
protected HolderInstantiator getHolderInstantiator()
public final void close()
throws HibernateException
ScrollableResults
close in interface ScrollableResultsHibernateException
public final java.lang.Object[] get()
throws HibernateException
ScrollableResults
get in interface ScrollableResultsHibernateException
public final java.lang.Object get(int col)
throws HibernateException
ScrollableResults
get in interface ScrollableResultscol - the column, numbered from zero
HibernateException
protected final java.lang.Object getFinal(int col,
Type returnType)
throws HibernateException
col - the columnreturnType - a "final" type
HibernateException
protected final java.lang.Object getNonFinal(int col,
Type returnType)
throws HibernateException
col - the columnreturnType - any type
HibernateException
public final java.math.BigDecimal getBigDecimal(int col)
throws HibernateException
ScrollableResults
getBigDecimal in interface ScrollableResultsHibernateException
public final java.math.BigInteger getBigInteger(int col)
throws HibernateException
ScrollableResults
getBigInteger in interface ScrollableResultsHibernateException
public final byte[] getBinary(int col)
throws HibernateException
ScrollableResults
getBinary in interface ScrollableResultsHibernateException
public final java.lang.String getText(int col)
throws HibernateException
ScrollableResults
getText in interface ScrollableResultsHibernateException
public final java.sql.Blob getBlob(int col)
throws HibernateException
ScrollableResults
getBlob in interface ScrollableResultsHibernateException
public final java.sql.Clob getClob(int col)
throws HibernateException
ScrollableResults
getClob in interface ScrollableResultsHibernateException
public final java.lang.Boolean getBoolean(int col)
throws HibernateException
ScrollableResults
getBoolean in interface ScrollableResultsHibernateException
public final java.lang.Byte getByte(int col)
throws HibernateException
ScrollableResults
getByte in interface ScrollableResultsHibernateException
public final java.lang.Character getCharacter(int col)
throws HibernateException
ScrollableResults
getCharacter in interface ScrollableResultsHibernateException
public final java.util.Date getDate(int col)
throws HibernateException
ScrollableResults
getDate in interface ScrollableResultsHibernateException
public final java.util.Calendar getCalendar(int col)
throws HibernateException
ScrollableResults
getCalendar in interface ScrollableResultsHibernateException
public final java.lang.Double getDouble(int col)
throws HibernateException
ScrollableResults
getDouble in interface ScrollableResultsHibernateException
public final java.lang.Float getFloat(int col)
throws HibernateException
ScrollableResults
getFloat in interface ScrollableResultsHibernateException
public final java.lang.Integer getInteger(int col)
throws HibernateException
ScrollableResults
getInteger in interface ScrollableResultsHibernateException
public final java.lang.Long getLong(int col)
throws HibernateException
ScrollableResults
getLong in interface ScrollableResultsHibernateException
public final java.lang.Short getShort(int col)
throws HibernateException
ScrollableResults
getShort in interface ScrollableResultsHibernateException
public final java.lang.String getString(int col)
throws HibernateException
ScrollableResults
getString in interface ScrollableResultsHibernateException
public final java.util.Locale getLocale(int col)
throws HibernateException
ScrollableResults
getLocale in interface ScrollableResultsHibernateException
public final java.util.TimeZone getTimeZone(int col)
throws HibernateException
ScrollableResults
getTimeZone in interface ScrollableResultsHibernateExceptionpublic final Type getType(int i)
ScrollableResults
getType in interface ScrollableResultsi - the column, numbered from zero
protected void afterScrollOperation()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||