org.apache.openjpa.persistence.query
public class InExpression extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected Expression |
_e1 |
protected Expression |
_e2 |
protected BinaryConditionalOperator |
_op |
static java.lang.String |
CLOSE_BRACE |
static java.lang.String |
COMMA |
static java.lang.String |
EMPTY |
static java.lang.String |
OPEN_BRACE |
| Constructor and Description |
|---|
InExpression(Expression op,
ArrayExpression op2) |
InExpression(Expression op,
Expression subquery) |
| 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.
|
Expression |
getOperand() |
Expression |
getOperand2() |
BinaryConditionalOperator |
getOperator() |
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, waitasJoinable, asProjection, getAliasHintprotected final Expression _e1
protected final Expression _e2
protected final BinaryConditionalOperator _op
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 InExpression(Expression op, ArrayExpression op2)
public InExpression(Expression op, Expression subquery)
public final Expression getOperand()
public final Expression getOperand2()
public final BinaryConditionalOperator getOperator()
public Predicate and(Predicate predicate)
Predicatepublic Predicate or(Predicate predicate)
Predicatepublic Predicate not()
Predicatepublic java.lang.String asExpression(org.apache.openjpa.persistence.query.AliasContext ctx)
VisitableasExpression in interface Visitablepublic java.lang.String asProjection(org.apache.openjpa.persistence.query.AliasContext ctx)
VisitableasProjection in interface Visitablepublic java.lang.String getAliasHint(org.apache.openjpa.persistence.query.AliasContext ctx)
VisitablegetAliasHint in interface Visitablepublic java.lang.String asJoinable(org.apache.openjpa.persistence.query.AliasContext ctx)
VisitableasJoinable in interface Visitable