Class PredicateImpl
- java.lang.Object
-
- org.datanucleus.api.jakarta.criteria.ExpressionImpl<Boolean>
-
- org.datanucleus.api.jakarta.criteria.PredicateImpl
-
- All Implemented Interfaces:
jakarta.persistence.criteria.Expression<Boolean>
,jakarta.persistence.criteria.Predicate
,jakarta.persistence.criteria.Selection<Boolean>
,jakarta.persistence.TupleElement<Boolean>
,Serializable
- Direct Known Subclasses:
InPredicate
public class PredicateImpl extends ExpressionImpl<Boolean> implements jakarta.persistence.criteria.Predicate
Implementation of Jakarta Persistence Criteria "Predicate".- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected List<jakarta.persistence.criteria.Predicate>
exprs
-
Fields inherited from class org.datanucleus.api.jakarta.criteria.ExpressionImpl
cb
-
-
Constructor Summary
Constructors Constructor Description PredicateImpl(CriteriaBuilderImpl cb)
PredicateImpl(CriteriaBuilderImpl cb, jakarta.persistence.criteria.Predicate.BooleanOperator op)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PredicateImpl
append(jakarta.persistence.criteria.Predicate pred)
Convenience method to add on the supplied predicate to this oneList<jakarta.persistence.criteria.Expression<Boolean>>
getExpressions()
jakarta.persistence.criteria.Predicate.BooleanOperator
getOperator()
org.datanucleus.store.query.expression.Expression
getQueryExpression()
Accessor for the underlying DataNucleus query expression for this predicate.boolean
isNegated()
jakarta.persistence.criteria.Predicate
not()
String
toString()
Method to print out the predicate as it would appear in JPQL single-string form.-
Methods inherited from class org.datanucleus.api.jakarta.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 jakarta.persistence.criteria.Expression
as, in, in, in, in, isNotNull, isNull
-
-
-
-
Field Detail
-
exprs
protected List<jakarta.persistence.criteria.Predicate> exprs
-
-
Constructor Detail
-
PredicateImpl
public PredicateImpl(CriteriaBuilderImpl cb)
-
PredicateImpl
public PredicateImpl(CriteriaBuilderImpl cb, jakarta.persistence.criteria.Predicate.BooleanOperator op)
-
-
Method Detail
-
not
public jakarta.persistence.criteria.Predicate not()
- Specified by:
not
in interfacejakarta.persistence.criteria.Predicate
-
getExpressions
public List<jakarta.persistence.criteria.Expression<Boolean>> getExpressions()
- Specified by:
getExpressions
in interfacejakarta.persistence.criteria.Predicate
-
getOperator
public jakarta.persistence.criteria.Predicate.BooleanOperator getOperator()
- Specified by:
getOperator
in interfacejakarta.persistence.criteria.Predicate
-
isNegated
public boolean isNegated()
- Specified by:
isNegated
in interfacejakarta.persistence.criteria.Predicate
-
append
public PredicateImpl append(jakarta.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 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:
toString
in classExpressionImpl<Boolean>
- Returns:
- The JPQL single string form of this predicate
-
-