Package org.hibernate.query.sql.internal
Class NativeSelectQueryPlanImpl<R>
java.lang.Object
org.hibernate.query.sql.internal.NativeSelectQueryPlanImpl<R>
- All Implemented Interfaces:
QueryPlan,SelectQueryPlan<R>,NativeQueryPlan,NativeSelectQueryPlan<R>
Standard implementation of
SelectQueryPlan for
NativeQuery, that is, for
queries written in SQL.-
Constructor Summary
ConstructorsConstructorDescriptionNativeSelectQueryPlanImpl(String sql, Set<String> affectedTableNames, List<ParameterOccurrence> parameterList, ResultSetMapping resultSetMapping, SessionFactoryImplementor sessionFactory) -
Method Summary
Modifier and TypeMethodDescription<T> TexecuteQuery(DomainQueryExecutionContext executionContext, ResultsConsumer<T, R> resultsConsumer) Execute the queryperformList(DomainQueryExecutionContext executionContext) Perform (execute) the query returning a ListperformScroll(ScrollMode scrollMode, DomainQueryExecutionContext executionContext) Perform (execute) the query returning a ScrollableResults
-
Constructor Details
-
NativeSelectQueryPlanImpl
public NativeSelectQueryPlanImpl(String sql, Set<String> affectedTableNames, List<ParameterOccurrence> parameterList, ResultSetMapping resultSetMapping, SessionFactoryImplementor sessionFactory)
-
-
Method Details
-
executeQuery
public <T> T executeQuery(DomainQueryExecutionContext executionContext, ResultsConsumer<T, R> resultsConsumer) Description copied from interface:SelectQueryPlanExecute the query- Specified by:
executeQueryin interfaceSelectQueryPlan<R>
-
performList
Description copied from interface:SelectQueryPlanPerform (execute) the query returning a List- Specified by:
performListin interfaceSelectQueryPlan<R>
-
performScroll
public ScrollableResultsImplementor<R> performScroll(ScrollMode scrollMode, DomainQueryExecutionContext executionContext) Description copied from interface:SelectQueryPlanPerform (execute) the query returning a ScrollableResults- Specified by:
performScrollin interfaceSelectQueryPlan<R>
-