Class PredicateImpl

  • All Implemented Interfaces:
    Serializable, javax.persistence.criteria.Expression<Boolean>, javax.persistence.criteria.Predicate, javax.persistence.criteria.Selection<Boolean>, javax.persistence.TupleElement<Boolean>
    Direct Known Subclasses:
    InPredicate

    public class PredicateImpl
    extends ExpressionImpl<Boolean>
    implements javax.persistence.criteria.Predicate
    Implementation of JPA2 Criteria "Predicate".
    See Also:
    Serialized Form
    • Field Detail

      • exprs

        protected List<javax.persistence.criteria.Predicate> exprs
    • Constructor Detail

      • PredicateImpl

        public PredicateImpl​(CriteriaBuilderImpl cb,
                             javax.persistence.criteria.Predicate.BooleanOperator op)
    • Method Detail

      • not

        public javax.persistence.criteria.Predicate not()
        Specified by:
        not in interface javax.persistence.criteria.Predicate
      • getExpressions

        public List<javax.persistence.criteria.Expression<Boolean>> getExpressions()
        Specified by:
        getExpressions in interface javax.persistence.criteria.Predicate
      • getOperator

        public javax.persistence.criteria.Predicate.BooleanOperator getOperator()
        Specified by:
        getOperator in interface javax.persistence.criteria.Predicate
      • isNegated

        public boolean isNegated()
        Specified by:
        isNegated in interface javax.persistence.criteria.Predicate
      • append

        public PredicateImpl append​(javax.persistence.criteria.Predicate pred)
        Convenience method to add on the supplied predicate to this one
        Parameters:
        pred - The supplied predicate to append to this
        Returns:
        The resultant predicate
      • getQueryExpression

        public org.datanucleus.store.query.expression.Expression getQueryExpression()
        Accessor for the underlying DataNucleus query expression for this predicate.
        Overrides:
        getQueryExpression in class ExpressionImpl<Boolean>
        Returns:
        The DataNucleus query expression
      • toString

        public String toString()
        Method to print out the predicate as it would appear in JPQL single-string form.
        Overrides:
        toString in class ExpressionImpl<Boolean>
        Returns:
        The JPQL single string form of this predicate