Class InterceptingCriteriaBuilderWrapper
java.lang.Object
ch.tocco.nice2.persist.core.impl.hibernate.query.AbstractCriteriaBuilderWrapper
ch.tocco.nice2.persist.core.impl.hibernate.query.InterceptingCriteriaBuilderWrapper
- All Implemented Interfaces:
CriteriaBuilderWrapper
,jakarta.persistence.criteria.CriteriaBuilder
Wraps the
CriteriaBuilder
instance created by Hibernate and adds additional
conditions (created by QueryBuilderInterceptor
instances) when predicates are
created that involve JOINs.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
Nested classes/interfaces inherited from interface jakarta.persistence.criteria.CriteriaBuilder
jakarta.persistence.criteria.CriteriaBuilder.Case<R>, jakarta.persistence.criteria.CriteriaBuilder.Coalesce<T>, jakarta.persistence.criteria.CriteriaBuilder.In<T>, jakarta.persistence.criteria.CriteriaBuilder.SimpleCase<C,
R>, jakarta.persistence.criteria.CriteriaBuilder.Trimspec -
Constructor Summary
ConstructorDescriptionInterceptingCriteriaBuilderWrapper
(org.hibernate.query.criteria.HibernateCriteriaBuilder delegate, InterceptingCriteriaBuilderWrapper.QueryBuilderAccessor accessor) -
Method Summary
Modifier and TypeMethodDescriptionjakarta.persistence.criteria.Order
asc
(jakarta.persistence.criteria.Expression<?> x) jakarta.persistence.criteria.Order
desc
(jakarta.persistence.criteria.Expression<?> x) jakarta.persistence.criteria.Predicate
equal
(jakarta.persistence.criteria.Expression<?> x, jakarta.persistence.criteria.Expression<?> y) jakarta.persistence.criteria.Predicate
jakarta.persistence.criteria.Predicate
exists
(jakarta.persistence.criteria.Subquery<?> subquery) Adds conditions for the relation paths of the exists conditions.<Y extends Comparable<? super Y>>
jakarta.persistence.criteria.PredicategreaterThan
(jakarta.persistence.criteria.Expression<? extends Y> x, jakarta.persistence.criteria.Expression<? extends Y> y) <Y extends Comparable<? super Y>>
jakarta.persistence.criteria.PredicategreaterThan
(jakarta.persistence.criteria.Expression<? extends Y> x, Y y) <Y extends Comparable<? super Y>>
jakarta.persistence.criteria.PredicategreaterThanOrEqualTo
(jakarta.persistence.criteria.Expression<? extends Y> x, jakarta.persistence.criteria.Expression<? extends Y> y) <Y extends Comparable<? super Y>>
jakarta.persistence.criteria.PredicategreaterThanOrEqualTo
(jakarta.persistence.criteria.Expression<? extends Y> x, Y y) jakarta.persistence.criteria.Predicate
in
(jakarta.persistence.criteria.Expression<?> expression, jakarta.persistence.criteria.Expression<?>... values) jakarta.persistence.criteria.Predicate
isNotNull
(jakarta.persistence.criteria.Expression<?> x) jakarta.persistence.criteria.Predicate
isNull
(jakarta.persistence.criteria.Expression<?> x) jakarta.persistence.criteria.Predicate
<Y extends Comparable<? super Y>>
jakarta.persistence.criteria.PredicatelessThan
(jakarta.persistence.criteria.Expression<? extends Y> x, jakarta.persistence.criteria.Expression<? extends Y> y) <Y extends Comparable<? super Y>>
jakarta.persistence.criteria.PredicatelessThan
(jakarta.persistence.criteria.Expression<? extends Y> x, Y y) <Y extends Comparable<? super Y>>
jakarta.persistence.criteria.PredicatelessThanOrEqualTo
(jakarta.persistence.criteria.Expression<? extends Y> x, jakarta.persistence.criteria.Expression<? extends Y> y) <Y extends Comparable<? super Y>>
jakarta.persistence.criteria.PredicatelessThanOrEqualTo
(jakarta.persistence.criteria.Expression<? extends Y> x, Y y) jakarta.persistence.criteria.Predicate
notEqual
(jakarta.persistence.criteria.Expression<?> x, jakarta.persistence.criteria.Expression<?> y) jakarta.persistence.criteria.Predicate
void
registerSubqueryRoot
(jakarta.persistence.criteria.From<?, ?> join) Should be called for each subquery root that is part of the current query.Methods inherited from class ch.tocco.nice2.persist.core.impl.hibernate.query.AbstractCriteriaBuilderWrapper
abs, all, and, and, any, array, asc, avg, between, between, ceiling, coalesce, coalesce, coalesce, concat, concat, concat, conjunction, construct, count, countDistinct, createCriteriaDelete, createCriteriaUpdate, createQuery, createQuery, createTupleQuery, currentDate, currentTime, currentTimestamp, desc, diff, diff, diff, disjunction, exp, floor, function, ge, ge, getDelegate, greatest, gt, gt, in, inlineLiteral, isEmpty, isFalse, isMember, isMember, isNotEmpty, isNotMember, isNotMember, keys, le, le, least, length, like, like, like, like, like, like, literal, ln, localDate, localDateTime, localTime, locate, locate, locate, locate, lower, lt, lt, max, min, mod, mod, mod, neg, not, notLike, notLike, notLike, notLike, notLike, notLike, nullif, nullif, nullLiteral, or, or, parameter, parameter, parameter, parameterTargetClasses, power, power, prod, prod, prod, quot, quot, quot, round, selectCase, selectCase, sign, size, size, some, sqrt, substring, substring, substring, substring, sum, sum, sum, sum, sumAsDouble, sumAsLong, toBigDecimal, toBigInteger, toDouble, toFloat, toInteger, toLong, toString, treat, treat, treat, treat, treat, treat, treat, trim, trim, trim, trim, trim, trim, tuple, upper, values
-
Constructor Details
-
InterceptingCriteriaBuilderWrapper
public InterceptingCriteriaBuilderWrapper(org.hibernate.query.criteria.HibernateCriteriaBuilder delegate, InterceptingCriteriaBuilderWrapper.QueryBuilderAccessor accessor)
-
-
Method Details
-
equal
public jakarta.persistence.criteria.Predicate equal(jakarta.persistence.criteria.Expression<?> x, jakarta.persistence.criteria.Expression<?> y) -
equal
public jakarta.persistence.criteria.Predicate equal(jakarta.persistence.criteria.Expression<?> x, Object y) -
notEqual
public jakarta.persistence.criteria.Predicate notEqual(jakarta.persistence.criteria.Expression<?> x, jakarta.persistence.criteria.Expression<?> y) -
notEqual
public jakarta.persistence.criteria.Predicate notEqual(jakarta.persistence.criteria.Expression<?> x, Object y) -
isNull
public jakarta.persistence.criteria.Predicate isNull(jakarta.persistence.criteria.Expression<?> x) - Specified by:
isNull
in interfacejakarta.persistence.criteria.CriteriaBuilder
- Overrides:
isNull
in classAbstractCriteriaBuilderWrapper
-
isNotNull
public jakarta.persistence.criteria.Predicate isNotNull(jakarta.persistence.criteria.Expression<?> x) - Specified by:
isNotNull
in interfacejakarta.persistence.criteria.CriteriaBuilder
- Overrides:
isNotNull
in classAbstractCriteriaBuilderWrapper
-
lessThan
public <Y extends Comparable<? super Y>> jakarta.persistence.criteria.Predicate lessThan(jakarta.persistence.criteria.Expression<? extends Y> x, jakarta.persistence.criteria.Expression<? extends Y> y) -
lessThan
public <Y extends Comparable<? super Y>> jakarta.persistence.criteria.Predicate lessThan(jakarta.persistence.criteria.Expression<? extends Y> x, Y y) -
lessThanOrEqualTo
public <Y extends Comparable<? super Y>> jakarta.persistence.criteria.Predicate lessThanOrEqualTo(jakarta.persistence.criteria.Expression<? extends Y> x, jakarta.persistence.criteria.Expression<? extends Y> y) -
lessThanOrEqualTo
public <Y extends Comparable<? super Y>> jakarta.persistence.criteria.Predicate lessThanOrEqualTo(jakarta.persistence.criteria.Expression<? extends Y> x, Y y) -
greaterThan
public <Y extends Comparable<? super Y>> jakarta.persistence.criteria.Predicate greaterThan(jakarta.persistence.criteria.Expression<? extends Y> x, jakarta.persistence.criteria.Expression<? extends Y> y) -
greaterThan
public <Y extends Comparable<? super Y>> jakarta.persistence.criteria.Predicate greaterThan(jakarta.persistence.criteria.Expression<? extends Y> x, Y y) -
greaterThanOrEqualTo
public <Y extends Comparable<? super Y>> jakarta.persistence.criteria.Predicate greaterThanOrEqualTo(jakarta.persistence.criteria.Expression<? extends Y> x, jakarta.persistence.criteria.Expression<? extends Y> y) -
greaterThanOrEqualTo
public <Y extends Comparable<? super Y>> jakarta.persistence.criteria.Predicate greaterThanOrEqualTo(jakarta.persistence.criteria.Expression<? extends Y> x, Y y) -
in
public jakarta.persistence.criteria.Predicate in(jakarta.persistence.criteria.Expression<?> expression, jakarta.persistence.criteria.Expression<?>... values) -
isTrue
public jakarta.persistence.criteria.Predicate isTrue(jakarta.persistence.criteria.Expression<Boolean> x) -
asc
public jakarta.persistence.criteria.Order asc(jakarta.persistence.criteria.Expression<?> x) - Specified by:
asc
in interfacejakarta.persistence.criteria.CriteriaBuilder
- Overrides:
asc
in classAbstractCriteriaBuilderWrapper
-
desc
public jakarta.persistence.criteria.Order desc(jakarta.persistence.criteria.Expression<?> x) - Specified by:
desc
in interfacejakarta.persistence.criteria.CriteriaBuilder
- Overrides:
desc
in classAbstractCriteriaBuilderWrapper
-
exists
public jakarta.persistence.criteria.Predicate exists(jakarta.persistence.criteria.Subquery<?> subquery) Adds conditions for the relation paths of the exists conditions. The conditions of the subquery roots are already added by theSubqueryBuilder
. -
registerSubqueryRoot
public void registerSubqueryRoot(jakarta.persistence.criteria.From<?, ?> join) Description copied from interface:CriteriaBuilderWrapper
Should be called for each subquery root that is part of the current query.
-