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.


Variable Index

 o right
Second Operand

Constructor Index

 o Join_Condition()
Default Constructor.
 o Join_Condition(Attribute, Attribute)
Constructor of Join_Conditon.

Method Index

 o clone()
Clone Join Condition.
 o contains(IS)
Check if specific IS in this condition.
 o contains(Relation)
Check if specific relation in this condition.
 o contains(String)
check if specific attribute in this condition
 o equals(Join_Condition)
Check if this join -conditoin is equivalent with another join Condition.
 o getNoIS()
Function to get String of Condition with out IS info in it.
 o getRight()
Get right attribute.
 o getRightName()
Get right attribute name in format "IS.R.A"
 o setOperand(Object)
Set Second Operand
 o setRight(Attribute)
Set right attribute.
 o toString()
convert join-condition to string
 o valid()
Test if the left attribute same as the right attribute.

Variables

 o right
 Attribute right
Second Operand

Constructors

 o Join_Condition
 public Join_Condition()
Default Constructor.

 o 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.

Methods

 o getRightName
 public String getRightName()
Get right attribute name in format "IS.R.A"

 o setOperand
 public void setOperand(Object attr)
Set Second Operand

Parameters:
attr - Object of Attribute;
Overrides:
setOperand in class Condition
 o toString
 public String toString()
convert join-condition to string

Overrides:
toString in class Condition
 o 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

 o 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
 o 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
 o contains
 public boolean contains(IS is)
Check if specific IS in this condition.

Parameters:
IS - the specific IS.
Returns:
true: contains; false: not contains.
 o getRight
 public Attribute getRight()
Get right attribute.

 o setRight
 public void setRight(Attribute attr)
Set right attribute.

 o getNoIS
 public String getNoIS()
Function to get String of Condition with out IS info in it.

Overrides:
getNoIS in class Condition
 o valid
 public boolean valid()
Test if the left attribute same as the right attribute. JC will not be valid if the left = right.

 o clone
 public Object clone()
Clone Join Condition.

Overrides:
clone in class Condition

All Packages  Class Hierarchy  This Package  Previous  Next  Index