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

public class InterceptingCriteriaBuilderWrapper extends AbstractCriteriaBuilderWrapper
Wraps the CriteriaBuilder instance created by Hibernate and adds additional conditions (created by QueryBuilderInterceptor instances) when predicates are created that involve JOINs.
  • Constructor Details

  • 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 interface jakarta.persistence.criteria.CriteriaBuilder
      Overrides:
      isNull in class AbstractCriteriaBuilderWrapper
    • isNotNull

      public jakarta.persistence.criteria.Predicate isNotNull(jakarta.persistence.criteria.Expression<?> x)
      Specified by:
      isNotNull in interface jakarta.persistence.criteria.CriteriaBuilder
      Overrides:
      isNotNull in class AbstractCriteriaBuilderWrapper
    • 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 interface jakarta.persistence.criteria.CriteriaBuilder
      Overrides:
      asc in class AbstractCriteriaBuilderWrapper
    • desc

      public jakarta.persistence.criteria.Order desc(jakarta.persistence.criteria.Expression<?> x)
      Specified by:
      desc in interface jakarta.persistence.criteria.CriteriaBuilder
      Overrides:
      desc in class AbstractCriteriaBuilderWrapper
    • 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 the SubqueryBuilder.
    • 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.