类 CompoundPredicate

    • 构造器详细资料

      • CompoundPredicate

        public CompoundPredicate​(CriteriaBuilderImpl criteriaBuilder,
                                 javax.persistence.criteria.Predicate.BooleanOperator operator)
        Constructs an empty conjunction or disjunction.
        参数:
        criteriaBuilder - The query builder from which this originates.
        operator - Indicates whether this predicate will function as a conjunction or disjunction.
      • CompoundPredicate

        public CompoundPredicate​(CriteriaBuilderImpl criteriaBuilder,
                                 javax.persistence.criteria.Predicate.BooleanOperator operator,
                                 javax.persistence.criteria.Expression<Boolean>... expressions)
        Constructs a conjunction or disjunction over the given expressions.
        参数:
        criteriaBuilder - The query builder from which this originates.
        operator - Indicates whether this predicate will function as a conjunction or disjunction.
        expressions - The expressions to be grouped.
      • CompoundPredicate

        public CompoundPredicate​(CriteriaBuilderImpl criteriaBuilder,
                                 javax.persistence.criteria.Predicate.BooleanOperator operator,
                                 List<javax.persistence.criteria.Expression<Boolean>> expressions)
        Constructs a conjunction or disjunction over the given expressions.
        参数:
        criteriaBuilder - The query builder from which this originates.
        operator - Indicates whether this predicate will function as a conjunction or disjunction.
        expressions - The expressions to be grouped.
    • 方法详细资料

      • getOperator

        public javax.persistence.criteria.Predicate.BooleanOperator getOperator()
        指定者:
        getOperator 在接口中 javax.persistence.criteria.Predicate
      • getExpressions

        public List<javax.persistence.criteria.Expression<Boolean>> getExpressions()
        指定者:
        getExpressions 在接口中 javax.persistence.criteria.Predicate
      • isJunction

        public boolean isJunction()
        从接口复制的说明: PredicateImplementor
        Is this a conjunction or disjunction?
        指定者:
        isJunction 在接口中 PredicateImplementor
        返回:
        true if this predicate is a junction (AND/OR); false otherwise
      • not

        public javax.persistence.criteria.Predicate not()
        Create negation of compound predicate by using logic rules: 1. not (x || y) is (not x && not y) 2. not (x && y) is (not x || not y)
        指定者:
        not 在接口中 javax.persistence.criteria.Predicate
        覆盖:
        not 在类中 AbstractPredicateImpl
      • reverseOperator

        public static javax.persistence.criteria.Predicate.BooleanOperator reverseOperator​(javax.persistence.criteria.Predicate.BooleanOperator operator)