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.
-
Condition_index()
- Default constructor of Condition_index.
-
Condition_index(Vector)
- Construct a Condition_index from Vector
-
contains(Join_Condition)
- Test if the Condition_Index contains a specific Join_Condition.
-
deepClone()
- DeepClone a Condition_index
-
getCondComponents(Relation)
- Get all Condition Components of one Relation
-
getCondComponents(String)
- Get Condition Components affected by specific Attribute.
-
getConditions(String)
- Get Conditions affected by specific Attribute.
-
getJoinConditions(Relation, Relation)
- Get Join Conditions between two specific Relations.
Condition_index
public Condition_index()
- Default constructor of Condition_index.
Condition_index
public Condition_index(Vector v)
- Construct a Condition_index from Vector
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
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.
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.
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.
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. )
deepClone
public Condition_index deepClone()
- DeepClone a Condition_index
All Packages Class Hierarchy This Package Previous Next Index