org.silverpeas.persistence.repository
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 extendings this interface and by adapting it to their purpose.

Author:
mmoquillon

Nested Class Summary
static class QueryCriteria.Clause
          A clause representing the criteria the entities have to match.
 
Method Summary
 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.


Copyright © 2016 Silverpeas. All Rights Reserved.