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 void
final void
close()
Release resources immediately.final R
get()
Get the current row of results.protected abstract R
protected JdbcValues
protected SharedSessionContractImplementor
protected JdbcValuesSourceProcessingOptions
protected RowProcessingStateStandardImpl
boolean
isClosed()
void
setFetchSize
(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, wait
Methods inherited from interface org.hibernate.ScrollableResults
afterLast, beforeFirst, first, getRowNumber, isFirst, isLast, last, next, position, previous, scroll, setRowNumber
-
Constructor Details
-
Method Details
-
get
Description copied from interface:ScrollableResults
Get the current row of results.- Specified by:
get
in 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:ScrollableResults
Gives 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:
setFetchSize
in interfaceScrollableResults<R>
- See Also:
-
close
public final void close()Description copied from interface:ScrollableResults
Release resources immediately.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceScrollableResults<R>
-
isClosed
public boolean isClosed()- Specified by:
isClosed
in interfaceScrollableResults<R>
- Returns:
true
ifScrollableResults.close()
was already called
-