Class PaginationQueryImpl<F,T>

java.lang.Object
com.atlassian.confluence.impl.pagination.PaginationQueryImpl<F,T>
All Implemented Interfaces:
PaginationQuery<F,T>

public class PaginationQueryImpl<F,T> extends Object implements PaginationQuery<F,T>
  • Constructor Details

    • PaginationQueryImpl

      public PaginationQueryImpl()
  • Method Details

    • createWithPredicate

      public PaginationQuery<F,T> createWithPredicate(Predicate<F> 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:
      createWithPredicate in interface PaginationQuery<F,T>
    • createWithModelConverter

      public PaginationQuery<F,T> createWithModelConverter(Function<F,T> modelConverter)
      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 interface PaginationQuery<F,T>
    • predicates

      public List<Predicate<F>> predicates()
      Specified by:
      predicates in interface PaginationQuery<F,T>
    • modelConverter

      public Function<F,T> modelConverter()
      Specified by:
      modelConverter in interface PaginationQuery<F,T>
    • newQuery

      public static <F, T> PaginationQuery<F,T> newQuery()
      Constructs a new PaginationQuery with no predicates or model converter.
    • newQuery

      public static <F, T> PaginationQuery<F,T> newQuery(Function<F,T> modelConverter)
    • 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> ignored)
      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()