|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--DSRG.VKB.Condition
Abstract class of Local_Condition and Join_Conditon.
It has the common part: Operator, and left attribute. It follows the rules:
It means Left one is attribute, right one could be a number of another attribute
If that is another attribute, it sort in a way that operator is "<" or "<=".
If the operator is "==" or "!=", we sorted in the alphabet order.
Field Summary | |
(package private) Attribute |
left
First operand |
(package private) Operator |
op
Operator of condition |
Constructor Summary | |
Condition()
|
Method Summary | |
abstract java.lang.Object |
clone()
Abstract function to clone() a condition. |
abstract boolean |
contains(Relation rel)
Abstract function to check if this condition contains specific relation |
abstract boolean |
contains(java.lang.String attr_name)
Abstract function to check if this condition contains specific attribute |
Attribute |
getLeft()
Return left attribute. |
java.lang.String |
getLeftName()
Get Left Attribute Name in format "IS.R.A" |
abstract java.lang.String |
getNoIS()
Abstract function to get String of Condition with out IS info in it. |
Operator |
getOperator()
Get operator |
void |
setAttribute(Attribute attr)
Set Attribute |
abstract void |
setOperand(java.lang.Object right)
Abstract function to set second operand |
void |
setOperator(Operator oper)
Set operator |
abstract java.lang.String |
toString()
Abstract function return String |
Methods inherited from class java.lang.Object |
|
Field Detail |
Operator op
Attribute left
Constructor Detail |
public Condition()
Method Detail |
public void setOperator(Operator oper)
public Operator getOperator()
public void setAttribute(Attribute attr)
public java.lang.String getLeftName()
public Attribute getLeft()
public abstract void setOperand(java.lang.Object right)
public abstract java.lang.String toString()
public abstract boolean contains(java.lang.String attr_name)
public abstract boolean contains(Relation rel)
public abstract java.lang.String getNoIS()
public abstract java.lang.Object clone()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |