Package org.hibernate.query.spi
Interface SelectQueryPlan<R>
-
- All Superinterfaces:
QueryPlan
- All Known Subinterfaces:
NativeSelectQueryPlan<T>
- All Known Implementing Classes:
AggregatedSelectQueryPlanImpl
,ConcreteSqmSelectQueryPlan
,NativeSelectQueryPlanImpl
@Incubating public interface SelectQueryPlan<R> extends QueryPlan
General contract for performing execution of a query returning results. These are the methods delegated to by the Query impls in response toQuery.list()
,Query.uniqueResult()
,Query.uniqueResultOptional()
,Query.getResultList()
,Query.getSingleResult()
andQuery.scroll()
. todo (6.0) : ? - can this be re-used for handling entity and collection loads as well? todo (6.0) : Stream/Spliterator version as well? depends on answer to ^^ short term it makes no sense to return a Stream/Spliterator for entity or collection loads. Long term it might if/when we start to define Session#stream(Class entityClass) style API- Since:
- 6.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> T
executeQuery(DomainQueryExecutionContext executionContext, ResultsConsumer<T,R> resultsConsumer)
Execute the queryList<R>
performList(DomainQueryExecutionContext executionContext)
Perform (execute) the query returning a ListScrollableResultsImplementor<R>
performScroll(ScrollMode scrollMode, DomainQueryExecutionContext executionContext)
Perform (execute) the query returning a ScrollableResults
-
-
-
Method Detail
-
executeQuery
<T> T executeQuery(DomainQueryExecutionContext executionContext, ResultsConsumer<T,R> resultsConsumer)
Execute the query- Since:
- 6.4
-
performList
List<R> performList(DomainQueryExecutionContext executionContext)
Perform (execute) the query returning a List
-
performScroll
ScrollableResultsImplementor<R> performScroll(ScrollMode scrollMode, DomainQueryExecutionContext executionContext)
Perform (execute) the query returning a ScrollableResults
-
-