Class PaginationQueryImpl<F,T>
java.lang.Object
com.atlassian.confluence.impl.pagination.PaginationQueryImpl<F,T>
- All Implemented Interfaces:
PaginationQuery<F,
T>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <F,
T> PaginationQuery<F, T> createNewQuery
(Function<F, T> modelConverter) createWithModelConverter
(Function<F, T> modelConverter) Specifies the model converter Function that should be applied to results.createWithPredicate
(Predicate<F> predicate) Adds a Predicate used to filter the raw database type results.static <T> PaginationQuery<T,
T> Constructs a PaginationQuery that does not perform model conversion.static <T> PaginationQuery<T,
T> newIdentityQuery
(Class<T> ignored) 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>
-
Constructor Details
-
PaginationQueryImpl
public PaginationQueryImpl()
-
-
Method Details
-
createWithPredicate
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:
createWithPredicate
in interfacePaginationQuery<F,
T>
-
createWithModelConverter
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:
createWithModelConverter
in interfacePaginationQuery<F,
T>
-
predicates
- Specified by:
predicates
in interfacePaginationQuery<F,
T>
-
modelConverter
- Specified by:
modelConverter
in interfacePaginationQuery<F,
T>
-
newQuery
Constructs a new PaginationQuery with no predicates or model converter. -
newQuery
-
createNewQuery
- Since:
- 7.0.1
-
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
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()
-