Interface ResultSetProcessor
-
public interface ResultSetProcessor
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?
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description List
extractResults(ResultSet resultSet, SharedSessionContractImplementor session, QueryParameters queryParameters, NamedParameterContext namedParameterContext, boolean returnProxies, boolean readOnly, ResultTransformer forcedResultTransformer, List<AfterLoadAction> afterLoadActions)
Process an entire ResultSet, performing all extractions.ScrollableResultSetProcessor
toOnDemandForm()
Deprecated.Going away!
-
-
-
Method Detail
-
toOnDemandForm
@Deprecated 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.
-
extractResults
List 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 ofLoader.doQuery(org.hibernate.engine.spi.SharedSessionContractImplementor, org.hibernate.engine.spi.QueryParameters, boolean, org.hibernate.transform.ResultTransformer)
, with focus on just the ResultSet processing bit.- Parameters:
resultSet
- The result set being processed.session
- The originating sessionqueryParameters
- The "parameters" used to build the queryreturnProxies
- Can proxies be returned (not the same as can they be created!)forcedResultTransformer
- My old "friend" ResultTransformer...afterLoadActions
- Actions to be performed after loading an entity.- Returns:
- The extracted results list.
- Throws:
SQLException
- Indicates a problem access the JDBC ResultSet
-
-