Package org.hibernate.internal
Class AbstractScrollableResults<R>
java.lang.Object
org.hibernate.internal.AbstractScrollableResults<R>
- All Implemented Interfaces:
AutoCloseable,ScrollableResultsImplementor<R>,ScrollableResults<R>
- Direct Known Subclasses:
FetchingScrollableResultsImpl,ScrollableResultsImpl
public abstract class AbstractScrollableResults<R>
extends Object
implements ScrollableResultsImplementor<R>
Base implementation of the ScrollableResults interface intended for sharing between
ScrollableResultsImpl and FetchingScrollableResultsImpl-
Constructor Summary
ConstructorsConstructorDescriptionAbstractScrollableResults(JdbcValues jdbcValues, JdbcValuesSourceProcessingOptions processingOptions, JdbcValuesSourceProcessingStateStandardImpl jdbcValuesSourceProcessingState, RowProcessingStateStandardImpl rowProcessingState, RowReader<R> rowReader, SharedSessionContractImplementor persistenceContext) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidfinal voidclose()Release resources immediately.final Rget()Get the current row of results.protected abstract Rprotected JdbcValuesprotected SharedSessionContractImplementorprotected JdbcValuesSourceProcessingOptionsprotected RowProcessingStateStandardImplbooleanisClosed()voidsetFetchSize(int fetchSize) Gives the JDBC driver a hint as to the number of rows that should be fetched from the database when more rows are needed.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, getPosition, getRowNumber, isFirst, isLast, last, next, position, previous, scroll, setRowNumber
-
Constructor Details
-
Method Details
-
get
Description copied from interface:ScrollableResultsGet the current row of results.- Specified by:
getin interfaceScrollableResults<R>- Returns:
- The array of results
- Throws:
HibernateException
-
getCurrentRow
-
getJdbcValues
-
getProcessingOptions
-
getJdbcValuesSourceProcessingState
-
getRowProcessingState
-
getRowReader
-
getPersistenceContext
-
afterScrollOperation
protected void afterScrollOperation() -
setFetchSize
public void setFetchSize(int fetchSize) Description copied from interface:ScrollableResultsGives the JDBC driver a hint as to the number of rows that should be fetched from the database when more rows are needed. If0, the JDBC driver's default setting will be used.- Specified by:
setFetchSizein interfaceScrollableResults<R>- See Also:
-
close
public final void close()Description copied from interface:ScrollableResultsRelease resources immediately.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceScrollableResults<R>
-
isClosed
public boolean isClosed()- Specified by:
isClosedin interfaceScrollableResults<R>- Returns:
trueifScrollableResults.close()was already called
-