Class JpaUtils.Accumulator

  • Enclosing class:
    JpaUtils

    public static class JpaUtils.Accumulator
    extends Object
    • Constructor Detail

      • Accumulator

        public Accumulator()
    • Method Detail

      • add

        public JpaUtils.Accumulator add​(javax.persistence.criteria.Predicate predicate)
        Adds predicate to the list of predicates
      • add

        public JpaUtils.Accumulator add​(List<javax.persistence.criteria.Predicate> predicates)
        Adds predicates to the list of predicates
      • toWhere

        public void toWhere​(javax.persistence.criteria.CriteriaQuery<?> q)
        Applies all accumulated predicates to the where condition of the supplied query