All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class DSRG.VKB.Condition_index

java.lang.Object
   |
   +----java.util.Vector
           |
           +----DSRG.VKB.Condition_index

public class Condition_index
extends Vector
implements Serializable
A vector stores all the conditions.


Constructor Index

 o Condition_index()
Default constructor of Condition_index.
 o Condition_index(Vector)
Construct a Condition_index from Vector

Method Index

 o contains(Join_Condition)
Test if the Condition_Index contains a specific Join_Condition.
 o deepClone()
DeepClone a Condition_index
 o getCondComponents(Relation)
Get all Condition Components of one Relation
 o getCondComponents(String)
Get Condition Components affected by specific Attribute.
 o getConditions(String)
Get Conditions affected by specific Attribute.
 o getJoinConditions(Relation, Relation)
Get Join Conditions between two specific Relations.

Constructors

 o Condition_index
 public Condition_index()
Default constructor of Condition_index.

 o Condition_index
 public Condition_index(Vector v)
Construct a Condition_index from Vector

Methods

 o getCondComponents
 public Vector getCondComponents(Relation rel)
Get all Condition Components of one Relation

Parameters:
rel - Reference of the relation.
Returns:
Vector of Condition Components of such Relation or empty Vector
 o getCondComponents
 public Vector getCondComponents(String attr_name)
Get Condition Components affected by specific Attribute.

Parameters:
attr_name - attribute name in format "IS.R.A"
Returns:
if there is any, return a vector of c-comp; otherwise return null.
 o getConditions
 public Vector getConditions(String attr_name)
Get Conditions affected by specific Attribute.

Parameters:
attr_name - attribute name in format "IS.R.A"
Returns:
if there is any, return a vector; otherwise return null.
 o getJoinConditions
 public Vector getJoinConditions(Relation rel1,
                                 Relation rel2)
Get Join Conditions between two specific Relations.

Parameters:
rel1 - name of one of two relations.
rel2 - name of the other relations.
Returns:
if there is any, return a vector; otherwise return an empty vector.
 o contains
 public boolean contains(Join_Condition jc)
Test if the Condition_Index contains a specific Join_Condition. Here, we don't compare the reference, we will compare the content. We will use the equals function of Join_Condition to test if two JCs are same. ( current, the equal function cannot test the order. )

 o deepClone
 public Condition_index deepClone()
DeepClone a Condition_index


All Packages  Class Hierarchy  This Package  Previous  Next  Index