Class PredicateClause<E,SELF extends PredicateClause<E,SELF>>

Type Parameters:
E - type of the EntityBean to query.
SELF - type of this class itself.
All Implemented Interfaces:
DbClause, TypedClause<E>
Direct Known Subclasses:
HavingClause, WhereClause

public abstract class PredicateClause<E,SELF extends PredicateClause<E,SELF>> extends AbstractTypedClause<E,SELF>
DbClause containing predicates like a SelectWhere- or HavingClause-clause.
Since:
1.0.0
  • Field Details

  • Constructor Details

    • PredicateClause

      public PredicateClause()
      The constructor.
  • Method Details

    • and

      public SELF and(io.github.mmm.property.criteria.CriteriaPredicate predicate)
      Parameters:
      predicate - the CriteriaPredicate to add. They will be combined with AND if called multiple times.
      Returns:
      this DbClause itself for fluent API calls.
    • and

      public SELF and(io.github.mmm.property.criteria.CriteriaPredicate... criteriaPredicates)
      Parameters:
      criteriaPredicates - the CriteriaPredicates to add. They will be combined with AND.
      Returns:
      this DbClause itself for fluent API calls.
    • getPredicates

      public List<io.github.mmm.property.criteria.CriteriaPredicate> getPredicates()
      Returns:
      the List of CriteriaPredicates.
    • isOmit

      public boolean isOmit()
      Returns:
      true if this DbClause should be omitted as it is optional and entirely empty, false otherwise.