Constructor and Description |
---|
QueryPredicateGenerator() |
Modifier and Type | Method and Description |
---|---|
javax.persistence.criteria.Predicate |
and(javax.persistence.criteria.CriteriaBuilder builder,
javax.persistence.criteria.Predicate... predicates)
Performs And operation on the given predicates.
|
<D extends Comparable<D>> |
getPredicate(ComparableCondition<D> condition,
javax.persistence.metamodel.SingularAttribute<? super P,D> attribute,
javax.persistence.criteria.CriteriaBuilder builder,
javax.persistence.criteria.Root<P> root)
Generates predicates to satisfy the given filter Comparable filter.
|
<D> javax.persistence.criteria.Predicate |
getPredicate(EqualityCondition<D> condition,
javax.persistence.metamodel.SingularAttribute<? super P,D> attribute,
javax.persistence.criteria.CriteriaBuilder builder,
javax.persistence.criteria.Root<P> root)
Generates a predicate to satisfy the given filter Equality Filter.
|
<D extends Comparable<D>> |
getPredicate(IntervalCondition<D> condition,
javax.persistence.metamodel.SingularAttribute<? super P,D> attribute,
javax.persistence.criteria.CriteriaBuilder builder,
javax.persistence.criteria.Root<P> root)
Generates predicates to satisfy the given filter Interval filter.
|
<D> javax.persistence.criteria.Predicate |
getPredicate(SetCondition<D> condition,
javax.persistence.metamodel.SingularAttribute<? super P,D> attribute,
javax.persistence.criteria.CriteriaBuilder builder,
javax.persistence.criteria.Root<P> root)
Generates predicates to satisfy the given Set filter.
|
javax.persistence.criteria.Predicate |
getPredicate(StringCondition condition,
javax.persistence.metamodel.SingularAttribute<? super P,String> attribute,
javax.persistence.criteria.CriteriaBuilder builder,
javax.persistence.criteria.Root<P> root)
Generates predicates to satisfy the given String filter.
|
javax.persistence.criteria.Predicate |
or(javax.persistence.criteria.CriteriaBuilder builder,
javax.persistence.criteria.Predicate... predicates)
Performs Or operation on the given predicates.
|
public <D> javax.persistence.criteria.Predicate getPredicate(EqualityCondition<D> condition, javax.persistence.metamodel.SingularAttribute<? super P,D> attribute, javax.persistence.criteria.CriteriaBuilder builder, javax.persistence.criteria.Root<P> root)
condition
- condition to apply.attribute
- JPA entity attribute (table column).builder
- CriteriaBuider object for creating the predicateroot
- The root element type of the tablepublic <D extends Comparable<D>> javax.persistence.criteria.Predicate getPredicate(ComparableCondition<D> condition, javax.persistence.metamodel.SingularAttribute<? super P,D> attribute, javax.persistence.criteria.CriteriaBuilder builder, javax.persistence.criteria.Root<P> root)
condition
- condition to apply.attribute
- JPA entity attribute (table column).builder
- CriteriaBuider object for creating the predicateroot
- The root element type of the tablepublic <D extends Comparable<D>> javax.persistence.criteria.Predicate getPredicate(IntervalCondition<D> condition, javax.persistence.metamodel.SingularAttribute<? super P,D> attribute, javax.persistence.criteria.CriteriaBuilder builder, javax.persistence.criteria.Root<P> root)
condition
- condition to apply.attribute
- JPA entity attribute (table column).builder
- CriteriaBuider object for creating the predicateroot
- The root element type of the tablepublic <D> javax.persistence.criteria.Predicate getPredicate(SetCondition<D> condition, javax.persistence.metamodel.SingularAttribute<? super P,D> attribute, javax.persistence.criteria.CriteriaBuilder builder, javax.persistence.criteria.Root<P> root)
condition
- condition to apply.attribute
- JPA entity attribute (table column).builder
- CriteriaBuider object for creating the predicateroot
- The root element type of the tablepublic javax.persistence.criteria.Predicate getPredicate(StringCondition condition, javax.persistence.metamodel.SingularAttribute<? super P,String> attribute, javax.persistence.criteria.CriteriaBuilder builder, javax.persistence.criteria.Root<P> root)
condition
- condition to apply.attribute
- JPA entity attribute (table column).builder
- CriteriaBuider object for creating the predicateroot
- The root element type of the tablepublic javax.persistence.criteria.Predicate and(javax.persistence.criteria.CriteriaBuilder builder, javax.persistence.criteria.Predicate... predicates)
builder
- criteria builder.predicates
- predicates to apply And operation to.public javax.persistence.criteria.Predicate or(javax.persistence.criteria.CriteriaBuilder builder, javax.persistence.criteria.Predicate... predicates)
builder
- criteria builder.predicates
- predicates to apply And operation to.Copyright © 2015. All Rights Reserved.