|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.api.impl.pagination.PaginationQueryImpl<F,T>
public class PaginationQueryImpl<F,T>
Constructor Summary | |
---|---|
PaginationQueryImpl()
|
Method Summary | ||
---|---|---|
com.google.common.base.Function<F,T> |
getModelConverter()
|
|
List<com.google.common.base.Predicate<F>> |
getPredicates()
|
|
static
|
newIdentityQuery()
Constructs a PaginationQuery that does not perform model conversion. |
|
static
|
newIdentityQuery(Class<T> clazz)
An alternate form of newIdentityQuery that accepts a Class to piggy-back type token T from. |
|
static
|
newQuery()
Constructs a new PaginationQuery with no predicates or model converter. |
|
static
|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PaginationQueryImpl()
Method Detail |
---|
public PaginationQuery<F,T> withPredicate(com.google.common.base.Predicate<F> predicate)
PaginationQuery
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
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |