public class LogicalPredicate extends java.lang.Object implements Predicate, Visitable
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLOSE_BRACE |
static java.lang.String |
COMMA |
static java.lang.String |
EMPTY |
static java.lang.String |
OPEN_BRACE |
static java.lang.String |
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.
|
java.lang.String |
asExpression(org.apache.openjpa.persistence.query.AliasContext ctx)
Get a JPQL fragment as used in WHERE clause.
|
java.lang.String |
asJoinable(org.apache.openjpa.persistence.query.AliasContext ctx)
Gets the string representation in FROM clause.
|
java.lang.String |
asProjection(org.apache.openjpa.persistence.query.AliasContext ctx)
Gets the string representation in SELECT projection.
|
java.lang.String |
getAliasHint(org.apache.openjpa.persistence.query.AliasContext ctx)
Gets the hint to be used while creating alias.
|
Predicate |
not()
Creates a negation of the predicate with the argument.
|
Predicate |
or(Predicate predicate)
Creates an OR of the predicate with the argument.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
asJoinable, asProjection, getAliasHint
public static final java.lang.String SPACE
public static final java.lang.String OPEN_BRACE
public static final java.lang.String CLOSE_BRACE
public static final java.lang.String COMMA
public static final java.lang.String EMPTY
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 java.lang.String asExpression(org.apache.openjpa.persistence.query.AliasContext ctx)
Visitable
asExpression
in interface Visitable
public java.lang.String asProjection(org.apache.openjpa.persistence.query.AliasContext ctx)
Visitable
asProjection
in interface Visitable
public java.lang.String getAliasHint(org.apache.openjpa.persistence.query.AliasContext ctx)
Visitable
getAliasHint
in interface Visitable
public java.lang.String asJoinable(org.apache.openjpa.persistence.query.AliasContext ctx)
Visitable
asJoinable
in interface Visitable