Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.hibernate.impl.AbstractScrollableResults
Constructor Summary | |
|
Method Summary | |
protected void | |
void |
|
Object[] |
|
Object |
|
BigDecimal |
|
BigInteger |
|
byte[] |
|
Blob |
|
Boolean |
|
Byte |
|
Calendar |
|
Character |
|
Clob |
|
protected abstract Object[] | |
Date |
|
Double |
|
protected Object | |
Float |
|
protected HolderInstantiator | |
Integer |
|
protected Loader | |
Locale |
|
Long |
|
protected Object |
|
protected PreparedStatement |
|
protected QueryParameters | |
protected ResultSet | |
protected SessionImplementor | |
Short |
|
String |
|
String |
|
TimeZone |
|
Type |
|
protected Type[] |
|
public AbstractScrollableResults(ResultSet rs, PreparedStatement ps, SessionImplementor sess, Loader loader, QueryParameters queryParameters, Type[] types, HolderInstantiator holderInstantiator) throws MappingException
protected void afterScrollOperation()
public final void close() throws HibernateException
Release resources immediately.
- Specified by:
- close in interface ScrollableResults
public final Object[] get() throws HibernateException
Get the current row of results
- Specified by:
- get in interface ScrollableResults
- Returns:
- an object or array
public final Object get(int col) throws HibernateException
Get the ith object in the current row of results, without initializing any other results in the row. This method may be used safely, regardless of the type of the column (ie. even for scalar results).
- Specified by:
- get in interface ScrollableResults
- Parameters:
- Returns:
- an object of any Hibernate type or null
public final BigDecimal getBigDecimal(int col) throws HibernateException
Convenience method to read a big_decimal
- Specified by:
- getBigDecimal in interface ScrollableResults
public final BigInteger getBigInteger(int col) throws HibernateException
Convenience method to read a big_integer
- Specified by:
- getBigInteger in interface ScrollableResults
public final byte[] getBinary(int col) throws HibernateException
Convenience method to read a binary
- Specified by:
- getBinary in interface ScrollableResults
public final Blob getBlob(int col) throws HibernateException
Convenience method to read a blob
- Specified by:
- getBlob in interface ScrollableResults
public final Boolean getBoolean(int col) throws HibernateException
Convenience method to read a boolean
- Specified by:
- getBoolean in interface ScrollableResults
public final Byte getByte(int col) throws HibernateException
Convenience method to read a byte
- Specified by:
- getByte in interface ScrollableResults
public final Calendar getCalendar(int col) throws HibernateException
Convenience method to read a calendar or calendar_date
- Specified by:
- getCalendar in interface ScrollableResults
public final Character getCharacter(int col) throws HibernateException
Convenience method to read a character
- Specified by:
- getCharacter in interface ScrollableResults
public final Clob getClob(int col) throws HibernateException
Convenience method to read a clob
- Specified by:
- getClob in interface ScrollableResults
protected abstract Object[] getCurrentRow()
public final Date getDate(int col) throws HibernateException
Convenience method to read a date, time or timestamp
- Specified by:
- getDate in interface ScrollableResults
public final Double getDouble(int col) throws HibernateException
Convenience method to read a double
- Specified by:
- getDouble in interface ScrollableResults
protected final Object getFinal(int col, Type returnType) throws HibernateException
Check that the requested type is compatible with the result type, and return the column value. This version makes sure the the classes are identical.
- Parameters:
col
- the columnreturnType
- a "final" type
public final Float getFloat(int col) throws HibernateException
Convenience method to read a float
- Specified by:
- getFloat in interface ScrollableResults
public final Integer getInteger(int col) throws HibernateException
Convenience method to read an integer
- Specified by:
- getInteger in interface ScrollableResults
public final Locale getLocale(int col) throws HibernateException
Convenience method to read a locale
- Specified by:
- getLocale in interface ScrollableResults
public final Long getLong(int col) throws HibernateException
Convenience method to read a long
- Specified by:
- getLong in interface ScrollableResults
protected final Object getNonFinal(int col, Type returnType) throws HibernateException
Check that the requested type is compatible with the result type, and return the column value. This version makes sure the the classes are "assignable".
- Parameters:
col
- the columnreturnType
- any type
protected PreparedStatement getPs()
protected ResultSet getResultSet()
public final Short getShort(int col) throws HibernateException
Convenience method to read a short
- Specified by:
- getShort in interface ScrollableResults
public final String getString(int col) throws HibernateException
Convenience method to read a string
- Specified by:
- getString in interface ScrollableResults
public final String getText(int col) throws HibernateException
Convenience method to read text
- Specified by:
- getText in interface ScrollableResults
public final TimeZone getTimeZone(int col) throws HibernateException
Convenience method to read a timezone
- Specified by:
- getTimeZone in interface ScrollableResults
public final Type getType(int i)
Get the type of the ith column of results
- Specified by:
- getType in interface ScrollableResults
- Parameters:
i
- the column, numbered from zero
- Returns:
- the Hibernate type