Class PaginationQueryImpl<F,T>
- java.lang.Object
-
- com.atlassian.confluence.api.impl.pagination.PaginationQueryImpl<F,T>
-
- All Implemented Interfaces:
PaginationQuery<F,T>
public class PaginationQueryImpl<F,T> extends Object implements PaginationQuery<F,T>
-
-
Constructor Summary
Constructors Constructor Description PaginationQueryImpl()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static <F,T>
PaginationQuery<F,T>createNewQuery(Function<F,T> modelConverter)
com.google.common.base.Function<F,T>
getModelConverter()
Deprecated.since 7.0.1.List<com.google.common.base.Predicate<F>>
getPredicates()
Deprecated.since 7.0.1.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)
Deprecated.since 7.0.1.PaginationQuery<F,T>
withModelConverter(com.google.common.base.Function<F,T> modelConverter)
Deprecated.since 7.0.1.PaginationQuery<F,T>
withPredicate(com.google.common.base.Predicate<F> predicate)
Deprecated.since 7.0.1.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.atlassian.confluence.api.impl.pagination.PaginationQuery
createWithModelConverter, createWithPredicate, modelConverter, predicates
-
-
-
-
Method Detail
-
withPredicate
@Deprecated public PaginationQuery<F,T> withPredicate(com.google.common.base.Predicate<F> predicate)
Deprecated.since 7.0.1. UsePaginationQuery.createWithPredicate(java.util.function.Predicate)
Description copied from interface:PaginationQuery
Adds a Predicate used to filter the raw database type results. Predicates are additive and combined with an AND boolean operation.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.
- Specified by:
withPredicate
in interfacePaginationQuery<F,T>
-
withModelConverter
@Deprecated public PaginationQuery<F,T> withModelConverter(com.google.common.base.Function<F,T> modelConverter)
Deprecated.Description copied from interface:PaginationQuery
Specifies the model converter Function that should be applied to results. For efficiency, models are only converted once they satisfy all Predicates.- Specified by:
withModelConverter
in interfacePaginationQuery<F,T>
-
getPredicates
@Deprecated public List<com.google.common.base.Predicate<F>> getPredicates()
Deprecated.since 7.0.1. UsePaginationQuery.predicates()
- Specified by:
getPredicates
in interfacePaginationQuery<F,T>
-
getModelConverter
@Deprecated public com.google.common.base.Function<F,T> getModelConverter()
Deprecated.since 7.0.1. UsePaginationQuery.modelConverter()
- Specified by:
getModelConverter
in interfacePaginationQuery<F,T>
-
newQuery
public static <F,T> PaginationQuery<F,T> newQuery()
Constructs a new PaginationQuery with no predicates or model converter.
-
newQuery
@Deprecated public static <F,T> PaginationQuery<F,T> newQuery(com.google.common.base.Function<F,T> modelConverter)
Deprecated.since 7.0.1. UsecreateNewQuery(java.util.function.Function)
-
createNewQuery
public static <F,T> PaginationQuery<F,T> createNewQuery(Function<F,T> modelConverter)
- Since:
- 7.0.1
-
newIdentityQuery
public static <T> PaginationQuery<T,T> newIdentityQuery()
Constructs a PaginationQuery that does not perform model conversion. On the result set. You should only be using this if you're sure you should be using it.
-
newIdentityQuery
public 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. This is syntactic sugar to make available newIdentityQuery(Foo.class) instead of PaginationQueryImpl.<Foo>newIdentityQuery()
-
-