Top Description Fields Constructors Methods
org.hibernate.internal

public abstract Class AbstractScrollableResults<R>

extends Object
implements ScrollableResultsImplementor<R>
Class Inheritance
All Implemented Interfaces
org.hibernate.query.spi.ScrollableResultsImplementor, org.hibernate.ScrollableResults, java.io.Closeable, java.lang.AutoCloseable
Known Direct Subclasses
org.hibernate.internal.FetchingScrollableResultsImpl, org.hibernate.internal.ScrollableResultsImpl
Imports
org.hibernate.HibernateException, org.hibernate.engine.spi.SharedSessionContractImplementor, org.hibernate.query.spi.ScrollableResultsImplementor, org.hibernate.sql.results.jdbc.internal.JdbcValuesSourceProcessingStateStandardImpl, org.hibernate.sql.results.internal.RowProcessingStateStandardImpl, org.hibernate.sql.results.jdbc.spi.JdbcValues, .JdbcValuesSourceProcessingOptions, org.hibernate.sql.results.spi.RowReader

Base implementation of the ScrollableResults interface intended for sharing between ScrollableResultsImpl and FetchingScrollableResultsImpl
Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private boolean
private final JdbcValues
private final JdbcValuesSourceProcessingStateStandardImpl
private final SharedSessionContractImplementor
private final JdbcValuesSourceProcessingOptions
private final RowProcessingStateStandardImpl
private final RowReader<R>

Constructor Summary

AccessConstructor and Description
public
AbstractScrollableResults(JdbcValues jdbcValues, JdbcValuesSourceProcessingOptions processingOptions, JdbcValuesSourceProcessingStateStandardImpl jdbcValuesSourceProcessingState, RowProcessingStateStandardImpl rowProcessingState, RowReader<R> rowReader, SharedSessionContractImplementor persistenceContext)

Method Summary

Modifier and TypeMethod and Description
protected void
public final void
close()

Implements org.hibernate.ScrollableResults.close.

Release resources immediately.
public final R
get()

Implements org.hibernate.ScrollableResults.get.

Get the current row of results.
protected abstract R
protected JdbcValues
protected JdbcValuesSourceProcessingStateStandardImpl
protected SharedSessionContractImplementor
protected JdbcValuesSourceProcessingOptions
protected RowProcessingStateStandardImpl
protected RowReader<R>
public boolean
public void
setFetchSize(int fetchSize)

Implements org.hibernate.ScrollableResults.setFetchSize.

Gives the JDBC driver a hint as to the number of rows that should be fetched from the database when more rows are needed.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

closedback to summary
private boolean closed
jdbcValuesback to summary
private final JdbcValues jdbcValues
jdbcValuesSourceProcessingStateback to summary
private final JdbcValuesSourceProcessingStateStandardImpl jdbcValuesSourceProcessingState
persistenceContextback to summary
private final SharedSessionContractImplementor persistenceContext
processingOptionsback to summary
private final JdbcValuesSourceProcessingOptions processingOptions
rowProcessingStateback to summary
private final RowProcessingStateStandardImpl rowProcessingState
rowReaderback to summary
private final RowReader<R> rowReader

Constructor Detail

AbstractScrollableResultsback to summary
public AbstractScrollableResults(JdbcValues jdbcValues, JdbcValuesSourceProcessingOptions processingOptions, JdbcValuesSourceProcessingStateStandardImpl jdbcValuesSourceProcessingState, RowProcessingStateStandardImpl rowProcessingState, RowReader<R> rowReader, SharedSessionContractImplementor persistenceContext)

Method Detail

afterScrollOperationback to summary
protected void afterScrollOperation()
closeback to summary
public final void close()

Implements org.hibernate.ScrollableResults.close.

Doc from org.hibernate.ScrollableResults.close.

Release resources immediately.

Annotations
@Override
getback to summary
public final R get() throws HibernateException

Implements org.hibernate.ScrollableResults.get.

Doc from org.hibernate.ScrollableResults.get.

Get the current row of results.

Returns:R

The array of results

Annotations
@Override
getCurrentRowback to summary
protected abstract R getCurrentRow()
getJdbcValuesback to summary
protected JdbcValues getJdbcValues()
getJdbcValuesSourceProcessingStateback to summary
protected JdbcValuesSourceProcessingStateStandardImpl getJdbcValuesSourceProcessingState()
getPersistenceContextback to summary
protected SharedSessionContractImplementor getPersistenceContext()
getProcessingOptionsback to summary
protected JdbcValuesSourceProcessingOptions getProcessingOptions()
getRowProcessingStateback to summary
protected RowProcessingStateStandardImpl getRowProcessingState()
getRowReaderback to summary
protected RowReader<R> getRowReader()
isClosedback to summary
public boolean isClosed()

Implements org.hibernate.query.spi.ScrollableResultsImplementor.isClosed.

Annotations
@Override
setFetchSizeback to summary
public void setFetchSize(int fetchSize)

Implements org.hibernate.ScrollableResults.setFetchSize.

Doc from org.hibernate.ScrollableResults.setFetchSize.

Gives the JDBC driver a hint as to the number of rows that should be fetched from the database when more rows are needed. If 0, the JDBC driver's default setting will be used.

Annotations
@Override