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>
-
Constructor Summary
ConstructorsConstructorDescriptionNativeSelectQueryPlanImpl
(String sql, Set<String> affectedTableNames, List<ParameterOccurrence> parameterList, ResultSetMapping resultSetMapping, SessionFactoryImplementor sessionFactory) -
Method Summary
Modifier and TypeMethodDescription<T> T
executeQuery
(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:SelectQueryPlan
Execute the query- Specified by:
executeQuery
in interfaceSelectQueryPlan<R>
-
performList
Description copied from interface:SelectQueryPlan
Perform (execute) the query returning a List- Specified by:
performList
in interfaceSelectQueryPlan<R>
-
performScroll
public ScrollableResultsImplementor<R> performScroll(ScrollMode scrollMode, DomainQueryExecutionContext executionContext) Description copied from interface:SelectQueryPlan
Perform (execute) the query returning a ScrollableResults- Specified by:
performScroll
in interfaceSelectQueryPlan<R>
-