T
- Type of the Query result passed to business logicP
- Type of query result which incurred while dao executes the query.F
- Filter to findS
- Sort specification for sort the resultC
- Type of Context to execute the query.public class PagedFindQuery<T extends TransportObject<? super T,?>,P extends Storable<?>,F,S,C> extends Object implements ReadQuery<MarkPage<T>,C>
Constructor and Description |
---|
PagedFindQuery(F filter,
SortSpecification<S> sortSpec,
MarkPageRequest<T> request,
Dao<?,T,P,F,S,C> dao)
Find query with pagination Support.
|
public PagedFindQuery(F filter, SortSpecification<S> sortSpec, MarkPageRequest<T> request, Dao<?,T,P,F,S,C> dao)
filter
- Filter for the QuerysortSpec
- The sorting Order for the result(Ascending/Descending)request
- Page specification.dao
- Dao to execute the querypublic MarkPage<T> execute(C context) throws Exception
execute
in interface ReadQuery<MarkPage<T extends TransportObject<? super T,?>>,C>
context
- Context to execute the queryNullPointerException
- In case of context is null.Exception
- Throws Exception in case of any error in query execute.Copyright © 2015. All Rights Reserved.