Top Description Methods
org.hibernate.loader.plan.exec.process.spi

public Interface ResultSetProcessor

Known Direct Implementers
org.hibernate.loader.plan.exec.process.internal.ResultSetProcessorImpl
Imports
java.sql.ResultSet, .SQLException, java.util.List, org.hibernate.engine.spi.QueryParameters, .SharedSessionContractImplementor, org.hibernate.loader.plan.exec.query.spi.NamedParameterContext, org.hibernate.loader.spi.AfterLoadAction, org.hibernate.transform.ResultTransformer

Contract for processing JDBC ResultSets. Separated because ResultSets can be chained and we'd really like to reuse this logic across all result sets.

todo : investigate having this work with non-JDBC results; maybe just typed as Object? or a special Result contract?

Author
Steve Ebersole

Method Summary

Modifier and TypeMethod and Description
public List<E>

Returns:

The extracted results list.
extractResults
(ResultSet
The result set being processed.
resultSet
,
SharedSessionContractImplementor
The originating session
session
,
QueryParameters
The "parameters" used to build the query
queryParameters
,
NamedParameterContext namedParameterContext, boolean
Can proxies be returned (not the same as can they be created!)
returnProxies
,
boolean readOnly, ResultTransformer
My old "friend" ResultTransformer...
forcedResultTransformer
,
List<AfterLoadAction>
Actions to be performed after loading an entity.
afterLoadActions
)

Process an entire ResultSet, performing all extractions.

public ScrollableResultSetProcessor
toOnDemandForm()

Deprecated Going away!
Make this go somewhere else.

Method Detail

extractResultsback to summary
public List<E> extractResults(ResultSet resultSet, SharedSessionContractImplementor session, QueryParameters queryParameters, NamedParameterContext namedParameterContext, boolean returnProxies, boolean readOnly, ResultTransformer forcedResultTransformer, List<AfterLoadAction> afterLoadActions) throws SQLException

Process an entire ResultSet, performing all extractions. Semi-copy of org.hibernate.loader.Loader#doQuery, with focus on just the ResultSet processing bit.

Parameters
resultSet:ResultSet

The result set being processed.

session:SharedSessionContractImplementor

The originating session

queryParameters:QueryParameters

The "parameters" used to build the query

returnProxies:boolean

Can proxies be returned (not the same as can they be created!)

forcedResultTransformer:ResultTransformer

My old "friend" ResultTransformer...

afterLoadActions:List<AfterLoadAction>

Actions to be performed after loading an entity.

Returns:List<E>

The extracted results list.

Exceptions
SQLException:
Indicates a problem access the JDBC ResultSet
toOnDemandFormback to summary
public ScrollableResultSetProcessor toOnDemandForm()

Deprecated

Going away!

Make this go somewhere else. These aren't really linked this way anymore. ScrollableResultSetProcessor is not tied in yet, so not sure yet exactly how that will play out.

Annotations
@Deprecated