public abstract class AbstractScrollableResults extends Object implements ScrollableResults
Modifier | Constructor and Description |
---|---|
protected |
AbstractScrollableResults(ResultSet rs,
PreparedStatement ps,
SessionImplementor sess,
Loader loader,
QueryParameters queryParameters,
Type[] types,
HolderInstantiator holderInstantiator) |
Modifier and Type | Method and Description |
---|---|
protected void |
afterScrollOperation() |
void |
close()
Release resources immediately.
|
Object[] |
get()
Get the current row of results.
|
Object |
get(int col)
Get the ith object in the current row of results, without
initializing any other results in the row.
|
BigDecimal |
getBigDecimal(int col)
Convenience method to read a BigDecimal.
|
BigInteger |
getBigInteger(int col)
Convenience method to read a BigInteger.
|
byte[] |
getBinary(int col)
Convenience method to read a binary (byte[]).
|
Blob |
getBlob(int col)
Convenience method to read a blob.
|
Boolean |
getBoolean(int col)
Convenience method to read a boolean.
|
Byte |
getByte(int col)
Convenience method to read a byte.
|
Calendar |
getCalendar(int col)
Convenience method to read a Calendar.
|
Character |
getCharacter(int col)
Convenience method to read a char.
|
Clob |
getClob(int col)
Convenience method to read a clob.
|
protected abstract Object[] |
getCurrentRow() |
Date |
getDate(int col)
Convenience method to read a Date.
|
Double |
getDouble(int col)
Convenience method to read a double.
|
protected Object |
getFinal(int col,
Type returnType)
Check that the requested type is compatible with the result type, and
return the column value.
|
Float |
getFloat(int col)
Convenience method to read a float.
|
protected HolderInstantiator |
getHolderInstantiator() |
Integer |
getInteger(int col)
Convenience method to read an integer.
|
protected Loader |
getLoader() |
Locale |
getLocale(int col)
Convenience method to read a Locale.
|
Long |
getLong(int col)
Convenience method to read a long.
|
protected Object |
getNonFinal(int col,
Type returnType)
Check that the requested type is compatible with the result type, and
return the column value.
|
protected PreparedStatement |
getPs() |
protected QueryParameters |
getQueryParameters() |
protected ResultSet |
getResultSet() |
protected SessionImplementor |
getSession() |
Short |
getShort(int col)
Convenience method to read a short.
|
String |
getString(int col)
Convenience method to read a string.
|
String |
getText(int col)
Convenience method to read a String using streaming.
|
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() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
afterLast, beforeFirst, first, getRowNumber, isFirst, isLast, last, next, previous, scroll, setRowNumber
protected AbstractScrollableResults(ResultSet rs, PreparedStatement ps, SessionImplementor sess, Loader loader, QueryParameters queryParameters, Type[] types, HolderInstantiator holderInstantiator)
protected abstract Object[] getCurrentRow()
protected ResultSet getResultSet()
protected PreparedStatement getPs()
protected SessionImplementor getSession()
protected Loader getLoader()
protected QueryParameters getQueryParameters()
protected Type[] getTypes()
protected HolderInstantiator getHolderInstantiator()
public final void close()
ScrollableResults
close
in interface Closeable
close
in interface AutoCloseable
close
in interface ScrollableResults
public final Object[] get() throws HibernateException
ScrollableResults
get
in interface ScrollableResults
HibernateException
public final Object get(int col) throws HibernateException
ScrollableResults
get
in interface ScrollableResults
col
- the column, numbered from zeronull
HibernateException
protected final Object getFinal(int col, Type returnType) throws HibernateException
col
- the columnreturnType
- a "final" typeHibernateException
protected final Object getNonFinal(int col, Type returnType) throws HibernateException
col
- the columnreturnType
- any typeHibernateException
public final BigDecimal getBigDecimal(int col) throws HibernateException
ScrollableResults
getBigDecimal
in interface ScrollableResults
col
- The column, numbered from zeroHibernateException
public final BigInteger getBigInteger(int col) throws HibernateException
ScrollableResults
getBigInteger
in interface ScrollableResults
col
- The column, numbered from zeroHibernateException
public final byte[] getBinary(int col) throws HibernateException
ScrollableResults
getBinary
in interface ScrollableResults
col
- The column, numbered from zeroHibernateException
public final String getText(int col) throws HibernateException
ScrollableResults
getText
in interface ScrollableResults
col
- The column, numbered from zeroHibernateException
public final Blob getBlob(int col) throws HibernateException
ScrollableResults
getBlob
in interface ScrollableResults
col
- The column, numbered from zeroHibernateException
public final Clob getClob(int col) throws HibernateException
ScrollableResults
getClob
in interface ScrollableResults
col
- The column, numbered from zeroHibernateException
public final Boolean getBoolean(int col) throws HibernateException
ScrollableResults
getBoolean
in interface ScrollableResults
col
- The column, numbered from zeroHibernateException
public final Byte getByte(int col) throws HibernateException
ScrollableResults
getByte
in interface ScrollableResults
col
- The column, numbered from zeroHibernateException
public final Character getCharacter(int col) throws HibernateException
ScrollableResults
getCharacter
in interface ScrollableResults
col
- The column, numbered from zeroHibernateException
public final Date getDate(int col) throws HibernateException
ScrollableResults
getDate
in interface ScrollableResults
col
- The column, numbered from zeroHibernateException
public final Calendar getCalendar(int col) throws HibernateException
ScrollableResults
getCalendar
in interface ScrollableResults
col
- The column, numbered from zeroHibernateException
public final Double getDouble(int col) throws HibernateException
ScrollableResults
getDouble
in interface ScrollableResults
col
- The column, numbered from zeroHibernateException
public final Float getFloat(int col) throws HibernateException
ScrollableResults
getFloat
in interface ScrollableResults
col
- The column, numbered from zeroHibernateException
public final Integer getInteger(int col) throws HibernateException
ScrollableResults
getInteger
in interface ScrollableResults
col
- The column, numbered from zeroHibernateException
public final Long getLong(int col) throws HibernateException
ScrollableResults
getLong
in interface ScrollableResults
col
- The column, numbered from zeroHibernateException
public final Short getShort(int col) throws HibernateException
ScrollableResults
getShort
in interface ScrollableResults
col
- The column, numbered from zeroHibernateException
public final String getString(int col) throws HibernateException
ScrollableResults
getString
in interface ScrollableResults
col
- The column, numbered from zeroHibernateException
public final Locale getLocale(int col) throws HibernateException
ScrollableResults
getLocale
in interface ScrollableResults
col
- The column, numbered from zeroHibernateException
public final TimeZone getTimeZone(int col) throws HibernateException
ScrollableResults
getTimeZone
in interface ScrollableResults
col
- The column, numbered from zeroHibernateException
public final Type getType(int i)
ScrollableResults
getType
in interface ScrollableResults
i
- the column, numbered from zeroprotected void afterScrollOperation()
Copyright © 2017 JBoss by Red Hat. All rights reserved.