All Packages Class Hierarchy This Package Previous Next Index
Class DSRG.VKB.Join_Condition
java.lang.Object
|
+----DSRG.VKB.Condition
|
+----DSRG.VKB.Join_Condition
- public class Join_Condition
- extends Condition
- implements Cloneable
Join Condition of view Definition. It's a part of WHERE clause. It will
help on query break down.
It will confirm the op is in this direction "<", "<=", if the op is
"==" and "!=", the two attribute with smaller value on the left.
-
right
- Second Operand
-
Join_Condition()
- Default Constructor.
-
Join_Condition(Attribute, Attribute)
- Constructor of Join_Conditon.
-
clone()
- Clone Join Condition.
-
contains(IS)
- Check if specific IS in this condition.
-
contains(Relation)
- Check if specific relation in this condition.
-
contains(String)
- check if specific attribute in this condition
-
equals(Join_Condition)
- Check if this join -conditoin is equivalent with another join
Condition.
-
getNoIS()
- Function to get String of Condition with out IS info in it.
-
getRight()
- Get right attribute.
-
getRightName()
- Get right attribute name in format "IS.R.A"
-
setOperand(Object)
- Set Second Operand
-
setRight(Attribute)
- Set right attribute.
-
toString()
- convert join-condition to string
-
valid()
- Test if the left attribute same as the right attribute.
right
Attribute right
- Second Operand
Join_Condition
public Join_Condition()
- Default Constructor.
Join_Condition
public Join_Condition(Attribute la,
Attribute ra)
- Constructor of Join_Conditon. Construct a JC like " A = B" from two attributes.
- Parameters:
- la - left attribute
- ra - right attribute.
getRightName
public String getRightName()
- Get right attribute name in format "IS.R.A"
setOperand
public void setOperand(Object attr)
- Set Second Operand
- Parameters:
- attr - Object of Attribute;
- Overrides:
- setOperand in class Condition
toString
public String toString()
- convert join-condition to string
- Overrides:
- toString in class Condition
equals
public boolean equals(Join_Condition jc)
- Check if this join -conditoin is equivalent with another join
Condition.
This compare will not considering the directions of the Join
Condition, that means: A=B is not same as B=A
contains
public boolean contains(String attr_name)
- check if specific attribute in this condition
- Parameters:
- attr_name - in format "IS.R.A"
- Returns:
- true: contains; false: not contains.
- Overrides:
- contains in class Condition
contains
public boolean contains(Relation rel)
- Check if specific relation in this condition.
- Parameters:
- Rel - the specific Relation.
- Returns:
- true: contains; false: not contains.
- Overrides:
- contains in class Condition
contains
public boolean contains(IS is)
- Check if specific IS in this condition.
- Parameters:
- IS - the specific IS.
- Returns:
- true: contains; false: not contains.
getRight
public Attribute getRight()
- Get right attribute.
setRight
public void setRight(Attribute attr)
- Set right attribute.
getNoIS
public String getNoIS()
- Function to get String of Condition with out IS info in it.
- Overrides:
- getNoIS in class Condition
valid
public boolean valid()
- Test if the left attribute same as the right attribute.
JC will not be valid if the left = right.
clone
public Object clone()
- Clone Join Condition.
- Overrides:
- clone in class Condition
All Packages Class Hierarchy This Package Previous Next Index