All Packages Class Hierarchy This Package Previous Next Index
Class DSRG.VKB.Condition
java.lang.Object
|
+----DSRG.VKB.Condition
- public abstract class Condition
- extends Object
- implements Serializable, Cloneable
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.
-
left
- First operand
-
op
- Operator of condition
-
Condition()
-
-
clone()
- Abstract function to clone() a condition.
-
contains(Relation)
- Abstract function to check if this condition contains specific relation
-
contains(String)
- Abstract function to check if this condition contains specific attribute
-
getLeft()
- Return left attribute.
-
getLeftName()
- Get Left Attribute Name in format "IS.R.A"
-
getNoIS()
- Abstract function to get String of Condition with out IS info in it.
-
getOperator()
- Get operator
-
setAttribute(Attribute)
- Set Attribute
-
setOperand(Object)
- Abstract function to set second operand
-
setOperator(Operator)
- Set operator
-
toString()
- Abstract function return String
op
Operator op
- Operator of condition
left
Attribute left
- First operand
Condition
public Condition()
setOperator
public void setOperator(Operator oper)
- Set operator
getOperator
public Operator getOperator()
- Get operator
setAttribute
public void setAttribute(Attribute attr)
- Set Attribute
getLeftName
public String getLeftName()
- Get Left Attribute Name in format "IS.R.A"
getLeft
public Attribute getLeft()
- Return left attribute.
setOperand
public abstract void setOperand(Object right)
- Abstract function to set second operand
toString
public abstract String toString()
- Abstract function return String
- Overrides:
- toString in class Object
contains
public abstract boolean contains(String attr_name)
- Abstract function to check if this condition contains specific attribute
contains
public abstract boolean contains(Relation rel)
- Abstract function to check if this condition contains specific relation
getNoIS
public abstract String getNoIS()
- Abstract function to get String of Condition with out IS info in it.
clone
public abstract Object clone()
- Abstract function to clone() a condition.
- Overrides:
- clone in class Object
All Packages Class Hierarchy This Package Previous Next Index