abstract class PredicateImpl extends ExpressionImpl<Boolean> implements javax.persistence.criteria.Predicate
Modifier and Type | Class and Description |
---|---|
(package private) static class |
PredicateImpl.And
Concrete AND predicate.
|
(package private) static class |
PredicateImpl.Or
Concrete OR predicate.
|
Modifier and Type | Field and Description |
---|---|
protected List<javax.persistence.criteria.Predicate> |
_exps |
Modifier | Constructor and Description |
---|---|
protected |
PredicateImpl()
An AND predicate with no arguments.
|
protected |
PredicateImpl(javax.persistence.criteria.Predicate.BooleanOperator op)
A predicate with the given operator.
|
protected |
PredicateImpl(javax.persistence.criteria.Predicate.BooleanOperator op,
javax.persistence.criteria.Predicate... restrictions)
A predicate of given operator with given arguments.
|
Modifier and Type | Method and Description |
---|---|
void |
acceptVisit(CriteriaExpressionVisitor visitor)
Accept visit from the given visitor.
|
PredicateImpl |
add(javax.persistence.criteria.Expression<Boolean> s)
Adds the given predicate expression.
|
StringBuilder |
asValue(AliasContext q)
Get a string representation of this node as a value in the context of the given query.
|
static javax.persistence.criteria.Predicate |
FALSE() |
List<javax.persistence.criteria.Expression<Boolean>> |
getExpressions() |
javax.persistence.criteria.Predicate.BooleanOperator |
getOperator() |
boolean |
isEmpty() |
boolean |
isNegated()
Is this predicate created by negating another predicate?
|
protected PredicateImpl |
markNegated() |
PredicateImpl |
not()
Returns a new predicate as the negation of this predicate.
|
(package private) Expression |
toKernelExpression(ExpressionFactory factory,
CriteriaQueryImpl<?> q)
Bridge contract to convert this facade expression to a kernel expression.
|
(package private) Value |
toValue(ExpressionFactory factory,
CriteriaQueryImpl<?> q)
Bridge contract to convert this facade expression to a kernel value.
|
static javax.persistence.criteria.Predicate |
TRUE() |
as, in, in, in, in, isNotNull, isNull
alias, asProjection, assertValidName, asVariable, getAlias, getCompoundSelectionItems, getJavaType, isAliased, isAutoAliased, isCompoundSelection, setAutoAlias
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
as, in, in, in, in, isNotNull, isNull
protected final List<javax.persistence.criteria.Predicate> _exps
protected PredicateImpl()
protected PredicateImpl(javax.persistence.criteria.Predicate.BooleanOperator op)
protected PredicateImpl(javax.persistence.criteria.Predicate.BooleanOperator op, javax.persistence.criteria.Predicate... restrictions)
public PredicateImpl add(javax.persistence.criteria.Expression<Boolean> s)
public List<javax.persistence.criteria.Expression<Boolean>> getExpressions()
getExpressions
in interface javax.persistence.criteria.Predicate
public final javax.persistence.criteria.Predicate.BooleanOperator getOperator()
getOperator
in interface javax.persistence.criteria.Predicate
public final boolean isEmpty()
public final boolean isNegated()
isNegated
in interface javax.persistence.criteria.Predicate
public PredicateImpl not()
not
in interface javax.persistence.criteria.Predicate
protected PredicateImpl markNegated()
public static javax.persistence.criteria.Predicate TRUE()
public static javax.persistence.criteria.Predicate FALSE()
Value toValue(ExpressionFactory factory, CriteriaQueryImpl<?> q)
ExpressionImpl
toValue
in class ExpressionImpl<Boolean>
factory
- creates the kernel expressionq
- the query definition context of this expressionExpression toKernelExpression(ExpressionFactory factory, CriteriaQueryImpl<?> q)
ExpressionImpl
toKernelExpression
in class ExpressionImpl<Boolean>
factory
- creates the kernel expressionq
- the query definition context of this expressionpublic void acceptVisit(CriteriaExpressionVisitor visitor)
CriteriaExpression
acceptVisit
in interface CriteriaExpression
acceptVisit
in class SelectionImpl<Boolean>
visitor
- a processor to walk the nodes of a tree.public StringBuilder asValue(AliasContext q)
CriteriaExpression
asValue
in interface CriteriaExpression
asValue
in class SelectionImpl<Boolean>
Copyright © 2006–2015 Apache Software Foundation. All rights reserved.