Package com.atlassian.bamboo.jpa
Class JpaUtils.Accumulator
java.lang.Object
com.atlassian.bamboo.jpa.JpaUtils.Accumulator
- Enclosing class:
- JpaUtils
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionAdds predicates to the list of predicatesadd
(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
-
Constructor Details
-
Accumulator
public Accumulator()
-
-
Method Details
-
add
Adds predicate to the list of predicates -
add
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
-