Interface PaginationQuery<F,T>
-
- All Known Implementing Classes:
PaginationQueryImpl
public interface PaginationQuery<F,T>
Enclosing type for the parameters generally required when dealing with a pagination request from the database.This interface is not fit for public consumption, as it addresses dealing with underlying database models, something public consumers should never ever be concerned about.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description default PaginationQuery<F,T>
createWithModelConverter(Function<F,T> modelConverter)
Specifies the model converter Function that should be applied to results.default PaginationQuery<F,T>
createWithPredicate(Predicate<F> predicate)
Adds a Predicate used to filter the raw database type results.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.default Function<F,T>
modelConverter()
default List<Predicate<F>>
predicates()
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.
-
-
-
Method Detail
-
withPredicate
@Deprecated PaginationQuery<F,T> withPredicate(com.google.common.base.Predicate<F> predicate)
Deprecated.since 7.0.1. UsecreateWithPredicate(Predicate)
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.
-
createWithPredicate
default PaginationQuery<F,T> createWithPredicate(Predicate<F> predicate)
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.
- Since:
- 7.0.1
-
withModelConverter
@Deprecated PaginationQuery<F,T> withModelConverter(com.google.common.base.Function<F,T> modelConverter)
Deprecated.since 7.0.1. UsecreateWithModelConverter(Function)
Specifies the model converter Function that should be applied to results. For efficiency, models are only converted once they satisfy all Predicates.
-
createWithModelConverter
default PaginationQuery<F,T> createWithModelConverter(Function<F,T> modelConverter)
Specifies the model converter Function that should be applied to results. For efficiency, models are only converted once they satisfy all Predicates.- Since:
- 7.0.1
-
getPredicates
@Deprecated List<com.google.common.base.Predicate<F>> getPredicates()
Deprecated.since 7.0.1. Usepredicates()
-
getModelConverter
@Deprecated com.google.common.base.Function<F,T> getModelConverter()
Deprecated.since 7.0.1. UsemodelConverter()
-
-