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, isNullalias, asProjection, assertValidName, asVariable, getAlias, getCompoundSelectionItems, getJavaType, isAliased, isAutoAliased, isCompoundSelection, setAutoAliasclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitas, in, in, in, in, isNotNull, isNullprotected 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.Predicatepublic final javax.persistence.criteria.Predicate.BooleanOperator getOperator()
getOperator in interface javax.persistence.criteria.Predicatepublic final boolean isEmpty()
public final boolean isNegated()
isNegated in interface javax.persistence.criteria.Predicatepublic PredicateImpl not()
not in interface javax.persistence.criteria.Predicateprotected PredicateImpl markNegated()
public static javax.persistence.criteria.Predicate TRUE()
public static javax.persistence.criteria.Predicate FALSE()
Value toValue(ExpressionFactory factory, CriteriaQueryImpl<?> q)
ExpressionImpltoValue in class ExpressionImpl<Boolean>factory - creates the kernel expressionq - the query definition context of this expressionExpression toKernelExpression(ExpressionFactory factory, CriteriaQueryImpl<?> q)
ExpressionImpltoKernelExpression in class ExpressionImpl<Boolean>factory - creates the kernel expressionq - the query definition context of this expressionpublic void acceptVisit(CriteriaExpressionVisitor visitor)
CriteriaExpressionacceptVisit in interface CriteriaExpressionacceptVisit in class SelectionImpl<Boolean>visitor - a processor to walk the nodes of a tree.public StringBuilder asValue(AliasContext q)
CriteriaExpressionasValue in interface CriteriaExpressionasValue in class SelectionImpl<Boolean>Copyright © 2006–2013 Apache Software Foundation. All rights reserved.