Package com.atlassian.bamboo.jpa
Class JpaUtils.Accumulator
- java.lang.Object
-
- com.atlassian.bamboo.jpa.JpaUtils.Accumulator
-
-
Constructor Summary
Constructors Constructor Description Accumulator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JpaUtils.Accumulator
add(List<javax.persistence.criteria.Predicate> predicates)
Adds predicates to the list of predicatesJpaUtils.Accumulator
add(javax.persistence.criteria.Predicate predicate)
Adds predicate to the list of predicatesvoid
toWhere(javax.persistence.criteria.CriteriaQuery<?> q)
Applies all accumulated predicates to the where condition of the supplied query
-
-
-
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
-
-