|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.metamatrix.query.sql.lang.Criteria
com.metamatrix.query.sql.lang.PredicateCriteria
com.metamatrix.query.sql.lang.AbstractCompareCriteria
public abstract class AbstractCompareCriteria
The common functionality of a CompareCriteria and a
SubqueryCompareCriteria. The comparison operators are defined
here.
| Field Summary | |
|---|---|
static int |
EQ
Constant indicating the two operands are equal. |
static int |
GE
Constant indicating the first operand is greater than or equal to the second. |
static int |
GT
Constant indicating the first operand is greater than the second. |
static int |
LE
Constant indicating the first operand is less than or equal to the second. |
static int |
LT
Constant indicating the first operand is less than the second. |
static int |
NE
Constant indicating the two operands are not equal. |
| Constructor Summary | |
|---|---|
AbstractCompareCriteria()
|
|
| Method Summary | |
|---|---|
Expression |
getLeftExpression()
Get left expression. |
int |
getOperator()
Returns the operator. |
static int |
getOperator(java.lang.String op)
Gets the operator constant given the string version |
java.lang.String |
getOperatorAsString()
Returns the operator as a string. |
abstract Expression |
getRightExpression()
|
void |
setLeftExpression(Expression expression)
Set left expression. |
void |
setOperator(int operator)
Sets the operator. |
| Methods inherited from class com.metamatrix.query.sql.lang.PredicateCriteria |
|---|
clone |
| Methods inherited from class com.metamatrix.query.sql.lang.Criteria |
|---|
combineCriteria, combineCriteria, combineCriteria, separateCriteriaByAnd, toConjunctiveNormalForm, toDisjunctiveNormalForm, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.metamatrix.query.sql.LanguageObject |
|---|
acceptVisitor |
| Field Detail |
|---|
public static final int EQ
public static final int NE
public static final int LT
public static final int GT
public static final int LE
public static final int GE
| Constructor Detail |
|---|
public AbstractCompareCriteria()
| Method Detail |
|---|
public int getOperator()
public void setOperator(int operator)
operator - public static int getOperator(java.lang.String op)
op - Operator, string form
public void setLeftExpression(Expression expression)
expression - Left expressionpublic Expression getLeftExpression()
public abstract Expression getRightExpression()
public java.lang.String getOperatorAsString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||