Interface QueryCriteria
-
- All Known Implementing Classes:
SimpleQueryCriteria
public interface QueryCriteria
Criteria is a simplified representation of conditions the entities targeted by a query have to satisfy and that constrains the query of such entities.Instead of providing a full representation of a criteria API by which criterion objects can be composing programmatically and that wraps each underlying persistence-specific criteria API we use, we prefer to let the developers provide their own implementation of the criteria by extending this interface and by adapting it to their purpose.
- Author:
- mmoquillon
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
QueryCriteria.Clause
A clause representing the criteria the entities have to match.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description QueryCriteria.Clause
clause()
Gets the clause the entities must match.PaginationCriterion
pagination()
Gets the pagination to apply to the query.
-
-
-
Method Detail
-
pagination
PaginationCriterion pagination()
Gets the pagination to apply to the query.- Returns:
- a criterion on a pagination. If no such criterion exists, then
PaginationCriterion.NO_PAGINATION
is returned.
-
clause
QueryCriteria.Clause clause()
Gets the clause the entities must match.- Returns:
- the clause of all conditions the entities have to match.
-
-