public class PaginationQueryImpl<F,T> extends Object implements PaginationQuery<F,T>
Constructor and Description |
---|
PaginationQueryImpl() |
Modifier and Type | Method and Description |
---|---|
com.google.common.base.Function<F,T> |
getModelConverter() |
List<com.google.common.base.Predicate<F>> |
getPredicates() |
static <T> PaginationQuery<T,T> |
newIdentityQuery()
Constructs a PaginationQuery that does not perform model conversion.
|
static <T> PaginationQuery<T,T> |
newIdentityQuery(Class<T> clazz)
An alternate form of newIdentityQuery that accepts a Class to piggy-back type token T from.
|
static <F,T> PaginationQuery<F,T> |
newQuery()
Constructs a new PaginationQuery with no predicates or model converter.
|
static <F,T> PaginationQuery<F,T> |
newQuery(com.google.common.base.Function<F,T> modelConverter)
Constructs a new PaginationQuery with a given model converter.
|
PaginationQuery<F,T> |
withModelConverter(com.google.common.base.Function<F,T> modelConverter)
Specifies the model converter Function that should be applied to results.
|
PaginationQuery<F,T> |
withPredicate(com.google.common.base.Predicate<F> predicate)
Adds a Predicate used to filter the raw database type results.
|
public PaginationQuery<F,T> withPredicate(com.google.common.base.Predicate<F> predicate)
PaginationQuery
NOTE: for now, Predicates *should not* be treated as a Query DSL. These Predicates should only be used to perform filtering of database results that cannot be expressed in a database query proper.
withPredicate
in interface PaginationQuery<F,T>
public PaginationQuery<F,T> withModelConverter(com.google.common.base.Function<F,T> modelConverter)
PaginationQuery
withModelConverter
in interface PaginationQuery<F,T>
public List<com.google.common.base.Predicate<F>> getPredicates()
getPredicates
in interface PaginationQuery<F,T>
public com.google.common.base.Function<F,T> getModelConverter()
getModelConverter
in interface PaginationQuery<F,T>
public static <F,T> PaginationQuery<F,T> newQuery()
F
- T
- public static <F,T> PaginationQuery<F,T> newQuery(com.google.common.base.Function<F,T> modelConverter)
F
- T
- public static <T> PaginationQuery<T,T> newIdentityQuery()
T
- public static <T> PaginationQuery<T,T> newIdentityQuery(Class<T> clazz)
clazz
- Copyright © 2003–2016 Atlassian. All rights reserved.