|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.wpi.cs.dsrg.xmldb.xat.common.expression.BinExpressionImp | +--edu.wpi.cs.dsrg.xmldb.xat.common.expression.BinCOMPExpressionImp
This class defines a binary comparision expression.
Fields inherited from interface edu.wpi.cs.dsrg.xmldb.xat.common.expression.BinCOMPExpression |
EQ,
GEQ,
GT,
LEQ,
LT,
NEQ |
Constructor Summary | |
BinCOMPExpressionImp()
The default binary expression constructor. |
|
BinCOMPExpressionImp(Expression left,
Expression right)
The binary expression constructor. |
Method Summary | |
java.lang.Boolean |
compAtomic(java.lang.Object left,
java.lang.Object right)
Execute the eval function for atomic values |
java.lang.Object |
eval(XATOperator xopOper,
int[] iPositions)
Evaluate the expression of the XATOperator. |
Expression |
getLeft()
Get the left part of expression. |
Expression |
getRight()
Get the right part of expression. |
int |
getType()
Get the type of expression. |
void |
setLeft(Expression left)
Set the left part of expression. |
void |
setRight(Expression right)
Set the right part of expression. |
void |
setType(int type)
Set the type of the expression. |
java.lang.String |
toSQL(OperatorEvaluator soe)
Convert the expression as a SQL statement. |
java.lang.String |
toString()
Output a string of this expression. |
Methods inherited from class edu.wpi.cs.dsrg.xmldb.xat.common.expression.BinExpressionImp |
getRelatedColumnNames |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public BinCOMPExpressionImp()
public BinCOMPExpressionImp(Expression left, Expression right)
left
- The left part of binary expression.right
- The right part of binary expression.Method Detail |
public java.lang.Boolean compAtomic(java.lang.Object left, java.lang.Object right)
left
- java.lang.Object The left part of expression.right
- java.lang.Object The right part of expression.public java.lang.Object eval(XATOperator xopOper, int[] iPositions)
xopOper
- The operator evaluated.iPositions
- The position of tuple in the XATTable.public Expression getLeft()
public Expression getRight()
public int getType()
public void setLeft(Expression left)
left
- The left part of a binary expression.public void setRight(Expression right)
left
- The right part of a binary expression.public void setType(int type)
type
- The number used to represent the type of expression.public java.lang.String toSQL(OperatorEvaluator soe)
soe
- The operator evaluator for SQL generation.public java.lang.String toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |