class CompareExpression extends Object implements Exp
| Modifier and Type | Field and Description |
|---|---|
static String |
GREATER |
static String |
GREATER_EQUAL |
static String |
LESS |
static String |
LESS_EQUAL |
| Constructor and Description |
|---|
CompareExpression(Val val1,
Val val2,
String op)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
public static final String LESS
public static final String GREATER
public static final String LESS_EQUAL
public static final String GREATER_EQUAL
public ExpState initialize(Select sel, ExpContext ctx, Map contains)
Expinitialize in interface Expcontains - 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)
Exppublic void selectColumns(Select sel, ExpContext ctx, ExpState state, boolean pks)
ExpselectColumns in interface Exppublic void acceptVisit(ExpressionVisitor visitor)
ExpressionacceptVisit in interface ExpressionCopyright © 2006–2015 Apache Software Foundation. All rights reserved.