|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.openjpa.jdbc.kernel.exps.CompareExpression
class CompareExpression
Compares two values.
Field Summary | |
---|---|
static String |
GREATER
|
static String |
GREATER_EQUAL
|
static String |
LESS
|
static String |
LESS_EQUAL
|
Constructor Summary | |
---|---|
CompareExpression(Val val1,
Val val2,
String op)
Constructor. |
Method Summary | |
---|---|
void |
acceptVisit(ExpressionVisitor visitor)
Accept a visit from a tree visitor. |
void |
appendTo(Select sel,
ExpContext ctx,
ExpState state,
SQLBuffer buf)
Append the SQL for this expression to the given buffer. |
ExpState |
initialize(Select sel,
ExpContext ctx,
Map contains)
Initialize the expression. |
void |
selectColumns(Select sel,
ExpContext ctx,
ExpState state,
boolean pks)
Select just the columns for this expression. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String LESS
public static final String GREATER
public static final String LESS_EQUAL
public static final String GREATER_EQUAL
Constructor Detail |
---|
public CompareExpression(Val val1, Val val2, String op)
Method Detail |
---|
public ExpState initialize(Select sel, ExpContext ctx, Map contains)
Exp
initialize
in interface Exp
contains
- map of relation paths to the number of times
the paths appear in a contains() expression;
used to ensure paths used for contains() within
the same AND expression used different aliasespublic void appendTo(Select sel, ExpContext ctx, ExpState state, SQLBuffer buf)
Exp
appendTo
in interface Exp
public void selectColumns(Select sel, ExpContext ctx, ExpState state, boolean pks)
Exp
selectColumns
in interface Exp
public void acceptVisit(ExpressionVisitor visitor)
Expression
acceptVisit
in interface Expression
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |