Package com.exedio.cope.misc
Class QueryAggregator<R>
- java.lang.Object
-
- com.exedio.cope.misc.QueryAggregator<R>
-
public final class QueryAggregator<R> extends Object
-
-
Constructor Summary
Constructors Constructor Description QueryAggregator(List<Query<? extends R>> queries)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static <R> QueryAggregator<R>
get(Query<? extends R> query1, Query<? extends R> query2)
static <R> QueryAggregator<R>
get(Query<? extends R> query1, Query<? extends R> query2, Query<? extends R> query3)
int
getLimit()
Deprecated.UsegetPageLimitOrMinusOne()
instead.int
getOffset()
Deprecated.UsegetPageOffset()
instead.int
getPageLimitOrMinusOne()
int
getPageOffset()
List<Query<? extends R>>
getQueries()
Query.Result<R>
searchAndTotal()
void
setLimit(int offset)
Deprecated.UsesetPageUnlimited(int)
instead.void
setLimit(int offset, int limit)
Deprecated.UsesetPage(int, int)
instead.void
setPage(int offset, int limit)
void
setPageUnlimited(int offset)
-
-
-
Method Detail
-
get
public static <R> QueryAggregator<R> get(Query<? extends R> query1, Query<? extends R> query2)
-
get
public static <R> QueryAggregator<R> get(Query<? extends R> query1, Query<? extends R> query2, Query<? extends R> query3)
-
getPageOffset
public int getPageOffset()
- See Also:
Query.getPageOffset()
-
getPageLimitOrMinusOne
public int getPageLimitOrMinusOne()
- See Also:
Query.getPageLimitOrMinusOne()
-
setPage
public void setPage(int offset, int limit)
- See Also:
Query.setPage(int,int)
-
setPageUnlimited
public void setPageUnlimited(int offset)
- See Also:
Query.setPageUnlimited(int)
-
searchAndTotal
public Query.Result<R> searchAndTotal()
- See Also:
Query.searchAndTotal()
-
getOffset
@Deprecated public int getOffset()
Deprecated.UsegetPageOffset()
instead.
-
getLimit
@Deprecated public int getLimit()
Deprecated.UsegetPageLimitOrMinusOne()
instead.
-
setLimit
@Deprecated public void setLimit(int offset, int limit)
Deprecated.UsesetPage(int, int)
instead.
-
setLimit
@Deprecated public void setLimit(int offset)
Deprecated.UsesetPageUnlimited(int)
instead.
-
-