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

  • Type Parameters:
    E - type of the EntityBean to query.
    SELF - type of this class itself.
    All Implemented Interfaces:
    Clause, TypedClause<E>, io.github.mmm.marshall.MarshallableObject, io.github.mmm.marshall.Marshaller<Object>, io.github.mmm.marshall.Marshalling<Object>, io.github.mmm.marshall.MarshallingObject, io.github.mmm.marshall.UnmarshallableObject, io.github.mmm.marshall.Unmarshaller<Object>
    Direct Known Subclasses:
    Having, Where

    public abstract class PredicateClause<E extends EntityBean,​SELF extends PredicateClause<E,​SELF>>
    extends AbstractTypedClause<E,​SELF>
    Clause containing predicates like a SelectWhere- or Having-clause.
    Since:
    1.0.0
    • Constructor Detail

      • PredicateClause

        public PredicateClause()
        The constructor.
    • Method Detail

      • 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 Clause 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 Clause 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 Clause should be omitted as it is optional and entirely empty, false otherwise.
      • writeProperties

        protected void writeProperties​(io.github.mmm.marshall.StructuredWriter writer)
        Overrides:
        writeProperties in class AbstractClause
      • readProperty

        protected void readProperty​(io.github.mmm.marshall.StructuredReader reader,
                                    String name)
        Overrides:
        readProperty in class AbstractClause