Package org.datanucleus.api.jpa.criteria
Class PredicateImpl
- java.lang.Object
-
- org.datanucleus.api.jpa.criteria.ExpressionImpl<Boolean>
-
- org.datanucleus.api.jpa.criteria.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 Summary
Fields Modifier and Type Field Description protected List<javax.persistence.criteria.Predicate>exprs-
Fields inherited from class org.datanucleus.api.jpa.criteria.ExpressionImpl
cb
-
-
Constructor Summary
Constructors Constructor Description PredicateImpl(CriteriaBuilderImpl cb)PredicateImpl(CriteriaBuilderImpl cb, javax.persistence.criteria.Predicate.BooleanOperator op)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PredicateImplappend(javax.persistence.criteria.Predicate pred)Convenience method to add on the supplied predicate to this oneList<javax.persistence.criteria.Expression<Boolean>>getExpressions()javax.persistence.criteria.Predicate.BooleanOperatorgetOperator()org.datanucleus.store.query.expression.ExpressiongetQueryExpression()Accessor for the underlying DataNucleus query expression for this predicate.booleanisNegated()javax.persistence.criteria.Predicatenot()StringtoString()Method to print out the predicate as it would appear in JPQL single-string form.-
Methods inherited from class org.datanucleus.api.jpa.criteria.ExpressionImpl
alias, as, getAlias, getCompoundSelectionItems, getJavaType, in, in, in, in, isCompoundSelection, isNotNull, isNull
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface javax.persistence.criteria.Expression
as, in, in, in, in, isNotNull, isNull
-
-
-
-
Field Detail
-
exprs
protected List<javax.persistence.criteria.Predicate> exprs
-
-
Constructor Detail
-
PredicateImpl
public PredicateImpl(CriteriaBuilderImpl cb)
-
PredicateImpl
public PredicateImpl(CriteriaBuilderImpl cb, javax.persistence.criteria.Predicate.BooleanOperator op)
-
-
Method Detail
-
not
public javax.persistence.criteria.Predicate not()
- Specified by:
notin interfacejavax.persistence.criteria.Predicate
-
getExpressions
public List<javax.persistence.criteria.Expression<Boolean>> getExpressions()
- Specified by:
getExpressionsin interfacejavax.persistence.criteria.Predicate
-
getOperator
public javax.persistence.criteria.Predicate.BooleanOperator getOperator()
- Specified by:
getOperatorin interfacejavax.persistence.criteria.Predicate
-
isNegated
public boolean isNegated()
- Specified by:
isNegatedin interfacejavax.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:
getQueryExpressionin classExpressionImpl<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:
toStringin classExpressionImpl<Boolean>- Returns:
- The JPQL single string form of this predicate
-
-