Package org.hibernate.impl
Class AbstractScrollableResults
java.lang.Object
org.hibernate.impl.AbstractScrollableResults
- All Implemented Interfaces:
ScrollableResults
- Direct Known Subclasses:
FetchingScrollableResultsImpl,ScrollableResultsImpl
Implementation of the ScrollableResults interface
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractScrollableResults(ResultSet rs, PreparedStatement ps, SessionImplementor sess, Loader loader, QueryParameters queryParameters, Type[] types, HolderInstantiator holderInstantiator) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidfinal voidclose()Release resources immediately.final Object[]get()Get the current row of resultsfinal Objectget(int col) Get the ith object in the current row of results, without initializing any other results in the row.final BigDecimalgetBigDecimal(int col) Convenience method to read a big_decimalfinal BigIntegergetBigInteger(int col) Convenience method to read a big_integerfinal byte[]getBinary(int col) Convenience method to read a binaryfinal BlobgetBlob(int col) Convenience method to read a blobfinal BooleangetBoolean(int col) Convenience method to read a booleanfinal BytegetByte(int col) Convenience method to read a bytefinal CalendargetCalendar(int col) Convenience method to read a calendar or calendar_datefinal CharactergetCharacter(int col) Convenience method to read a characterfinal ClobgetClob(int col) Convenience method to read a clobprotected abstract Object[]final DategetDate(int col) Convenience method to read a date, time or timestampfinal DoublegetDouble(int col) Convenience method to read a doubleprotected final ObjectCheck that the requested type is compatible with the result type, and return the column value.final FloatgetFloat(int col) Convenience method to read a floatprotected HolderInstantiatorfinal IntegergetInteger(int col) Convenience method to read an integerprotected Loaderfinal LocalegetLocale(int col) Convenience method to read a localefinal LonggetLong(int col) Convenience method to read a longprotected final ObjectgetNonFinal(int col, Type returnType) Check that the requested type is compatible with the result type, and return the column value.protected PreparedStatementgetPs()protected QueryParametersprotected ResultSetprotected SessionImplementorfinal ShortgetShort(int col) Convenience method to read a shortfinal StringgetString(int col) Convenience method to read a stringfinal StringgetText(int col) Convenience method to read textfinal TimeZonegetTimeZone(int col) Convenience method to read a timezonefinal TypegetType(int i) Get the type of the ith column of resultsprotected Type[]getTypes()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hibernate.ScrollableResults
afterLast, beforeFirst, first, getRowNumber, isFirst, isLast, last, next, previous, scroll, setRowNumber
-
Constructor Details
-
AbstractScrollableResults
public AbstractScrollableResults(ResultSet rs, PreparedStatement ps, SessionImplementor sess, Loader loader, QueryParameters queryParameters, Type[] types, HolderInstantiator holderInstantiator) throws MappingException - Throws:
MappingException
-
-
Method Details
-
getCurrentRow
-
getResultSet
-
getPs
-
getSession
-
getLoader
-
getQueryParameters
-
getTypes
-
getHolderInstantiator
-
close
Description copied from interface:ScrollableResultsRelease resources immediately.- Specified by:
closein interfaceScrollableResults- Throws:
HibernateException
-
get
Description copied from interface:ScrollableResultsGet the current row of results- Specified by:
getin interfaceScrollableResults- Returns:
- an object or array
- Throws:
HibernateException
-
get
Description copied from interface:ScrollableResultsGet 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:
getin interfaceScrollableResults- Parameters:
col- the column, numbered from zero- Returns:
- an object of any Hibernate type or null
- Throws:
HibernateException
-
getFinal
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- Throws:
HibernateException
-
getNonFinal
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- Throws:
HibernateException
-
getBigDecimal
Description copied from interface:ScrollableResultsConvenience method to read a big_decimal- Specified by:
getBigDecimalin interfaceScrollableResults- Throws:
HibernateException
-
getBigInteger
Description copied from interface:ScrollableResultsConvenience method to read a big_integer- Specified by:
getBigIntegerin interfaceScrollableResults- Throws:
HibernateException
-
getBinary
Description copied from interface:ScrollableResultsConvenience method to read a binary- Specified by:
getBinaryin interfaceScrollableResults- Throws:
HibernateException
-
getText
Description copied from interface:ScrollableResultsConvenience method to read text- Specified by:
getTextin interfaceScrollableResults- Throws:
HibernateException
-
getBlob
Description copied from interface:ScrollableResultsConvenience method to read a blob- Specified by:
getBlobin interfaceScrollableResults- Throws:
HibernateException
-
getClob
Description copied from interface:ScrollableResultsConvenience method to read a clob- Specified by:
getClobin interfaceScrollableResults- Throws:
HibernateException
-
getBoolean
Description copied from interface:ScrollableResultsConvenience method to read a boolean- Specified by:
getBooleanin interfaceScrollableResults- Throws:
HibernateException
-
getByte
Description copied from interface:ScrollableResultsConvenience method to read a byte- Specified by:
getBytein interfaceScrollableResults- Throws:
HibernateException
-
getCharacter
Description copied from interface:ScrollableResultsConvenience method to read a character- Specified by:
getCharacterin interfaceScrollableResults- Throws:
HibernateException
-
getDate
Description copied from interface:ScrollableResultsConvenience method to read a date, time or timestamp- Specified by:
getDatein interfaceScrollableResults- Throws:
HibernateException
-
getCalendar
Description copied from interface:ScrollableResultsConvenience method to read a calendar or calendar_date- Specified by:
getCalendarin interfaceScrollableResults- Throws:
HibernateException
-
getDouble
Description copied from interface:ScrollableResultsConvenience method to read a double- Specified by:
getDoublein interfaceScrollableResults- Throws:
HibernateException
-
getFloat
Description copied from interface:ScrollableResultsConvenience method to read a float- Specified by:
getFloatin interfaceScrollableResults- Throws:
HibernateException
-
getInteger
Description copied from interface:ScrollableResultsConvenience method to read an integer- Specified by:
getIntegerin interfaceScrollableResults- Throws:
HibernateException
-
getLong
Description copied from interface:ScrollableResultsConvenience method to read a long- Specified by:
getLongin interfaceScrollableResults- Throws:
HibernateException
-
getShort
Description copied from interface:ScrollableResultsConvenience method to read a short- Specified by:
getShortin interfaceScrollableResults- Throws:
HibernateException
-
getString
Description copied from interface:ScrollableResultsConvenience method to read a string- Specified by:
getStringin interfaceScrollableResults- Throws:
HibernateException
-
getLocale
Description copied from interface:ScrollableResultsConvenience method to read a locale- Specified by:
getLocalein interfaceScrollableResults- Throws:
HibernateException
-
getTimeZone
Description copied from interface:ScrollableResultsConvenience method to read a timezone- Specified by:
getTimeZonein interfaceScrollableResults- Throws:
HibernateException
-
getType
Description copied from interface:ScrollableResultsGet the type of the ith column of results- Specified by:
getTypein interfaceScrollableResults- Parameters:
i- the column, numbered from zero- Returns:
- the Hibernate type
-
afterScrollOperation
protected void afterScrollOperation()
-