public abstract class AbstractScrollableResults extends Object implements ScrollableResultsImplementor
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractScrollableResults(ResultSet rs,
PreparedStatement ps,
SharedSessionContractImplementor 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.
|
int |
getNumberOfTypes() |
protected PreparedStatement |
getPs() |
protected QueryParameters |
getQueryParameters() |
protected ResultSet |
getResultSet() |
protected SharedSessionContractImplementor |
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() |
boolean |
isClosed() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitafterLast, beforeFirst, first, getRowNumber, isFirst, isLast, last, next, previous, scroll, setRowNumberprotected AbstractScrollableResults(ResultSet rs, PreparedStatement ps, SharedSessionContractImplementor sess, Loader loader, QueryParameters queryParameters, Type[] types, HolderInstantiator holderInstantiator)
protected abstract Object[] getCurrentRow()
protected ResultSet getResultSet()
protected PreparedStatement getPs()
protected SharedSessionContractImplementor getSession()
protected Loader getLoader()
protected QueryParameters getQueryParameters()
protected Type[] getTypes()
protected HolderInstantiator getHolderInstantiator()
public final void close()
ScrollableResultsclose in interface Closeableclose in interface AutoCloseableclose in interface ScrollableResultspublic boolean isClosed()
isClosed in interface ScrollableResultsImplementorpublic int getNumberOfTypes()
getNumberOfTypes in interface ScrollableResultsImplementorpublic final Object[] get() throws HibernateException
ScrollableResultsget in interface ScrollableResultsHibernateExceptionpublic final Object get(int col) throws HibernateException
ScrollableResultsget in interface ScrollableResultscol - the column, numbered from zeronullHibernateExceptionprotected final Object getFinal(int col, Type returnType) throws HibernateException
col - the columnreturnType - a "final" typeHibernateExceptionprotected final Object getNonFinal(int col, Type returnType) throws HibernateException
col - the columnreturnType - any typeHibernateExceptionpublic final BigDecimal getBigDecimal(int col) throws HibernateException
ScrollableResultsgetBigDecimal in interface ScrollableResultscol - The column, numbered from zeroHibernateExceptionpublic final BigInteger getBigInteger(int col) throws HibernateException
ScrollableResultsgetBigInteger in interface ScrollableResultscol - The column, numbered from zeroHibernateExceptionpublic final byte[] getBinary(int col)
throws HibernateException
ScrollableResultsgetBinary in interface ScrollableResultscol - The column, numbered from zeroHibernateExceptionpublic final String getText(int col) throws HibernateException
ScrollableResultsgetText in interface ScrollableResultscol - The column, numbered from zeroHibernateExceptionpublic final Blob getBlob(int col) throws HibernateException
ScrollableResultsgetBlob in interface ScrollableResultscol - The column, numbered from zeroHibernateExceptionpublic final Clob getClob(int col) throws HibernateException
ScrollableResultsgetClob in interface ScrollableResultscol - The column, numbered from zeroHibernateExceptionpublic final Boolean getBoolean(int col) throws HibernateException
ScrollableResultsgetBoolean in interface ScrollableResultscol - The column, numbered from zeroHibernateExceptionpublic final Byte getByte(int col) throws HibernateException
ScrollableResultsgetByte in interface ScrollableResultscol - The column, numbered from zeroHibernateExceptionpublic final Character getCharacter(int col) throws HibernateException
ScrollableResultsgetCharacter in interface ScrollableResultscol - The column, numbered from zeroHibernateExceptionpublic final Date getDate(int col) throws HibernateException
ScrollableResultsgetDate in interface ScrollableResultscol - The column, numbered from zeroHibernateExceptionpublic final Calendar getCalendar(int col) throws HibernateException
ScrollableResultsgetCalendar in interface ScrollableResultscol - The column, numbered from zeroHibernateExceptionpublic final Double getDouble(int col) throws HibernateException
ScrollableResultsgetDouble in interface ScrollableResultscol - The column, numbered from zeroHibernateExceptionpublic final Float getFloat(int col) throws HibernateException
ScrollableResultsgetFloat in interface ScrollableResultscol - The column, numbered from zeroHibernateExceptionpublic final Integer getInteger(int col) throws HibernateException
ScrollableResultsgetInteger in interface ScrollableResultscol - The column, numbered from zeroHibernateExceptionpublic final Long getLong(int col) throws HibernateException
ScrollableResultsgetLong in interface ScrollableResultscol - The column, numbered from zeroHibernateExceptionpublic final Short getShort(int col) throws HibernateException
ScrollableResultsgetShort in interface ScrollableResultscol - The column, numbered from zeroHibernateExceptionpublic final String getString(int col) throws HibernateException
ScrollableResultsgetString in interface ScrollableResultscol - The column, numbered from zeroHibernateExceptionpublic final Locale getLocale(int col) throws HibernateException
ScrollableResultsgetLocale in interface ScrollableResultscol - The column, numbered from zeroHibernateExceptionpublic final TimeZone getTimeZone(int col) throws HibernateException
ScrollableResultsgetTimeZone in interface ScrollableResultscol - The column, numbered from zeroHibernateExceptionpublic final Type getType(int i)
ScrollableResultsgetType in interface ScrollableResultsi - the column, numbered from zeroprotected void afterScrollOperation()
Copyright © 2019 JBoss by Red Hat. All rights reserved.