public class LogicalPredicate extends AbstractVisitable implements Predicate, Visitable
CLOSE_BRACE, COMMA, EMPTY, OPEN_BRACE, SPACE
Constructor and Description |
---|
LogicalPredicate(Predicate p1,
ConditionalOperator op,
ConditionalOperator nop,
Predicate p2) |
Modifier and Type | Method and Description |
---|---|
Predicate |
and(Predicate predicate)
Creates an AND of the predicate with the argument.
|
String |
asExpression(AliasContext ctx)
Get a JPQL fragment as used in WHERE clause.
|
Predicate |
not()
Creates a negation of the predicate with the argument.
|
Predicate |
or(Predicate predicate)
Creates an OR of the predicate with the argument.
|
asJoinable, asProjection, getAliasHint
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
asJoinable, asProjection, getAliasHint
public LogicalPredicate(Predicate p1, ConditionalOperator op, ConditionalOperator nop, Predicate p2)
public Predicate and(Predicate predicate)
Predicate
public Predicate or(Predicate predicate)
Predicate
public Predicate not()
Predicate
public String asExpression(AliasContext ctx)
Visitable
asExpression
in interface Visitable
asExpression
in class AbstractVisitable
Copyright © 2006–2013 Apache Software Foundation. All rights reserved.