All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class SWEEP.JoinCondition

java.lang.Object
   |
   +----SWEEP.JoinCondition

public class JoinCondition
extends Object
implements Serializable
This function will represent the formula Operand1 Op Operand2. Here Operands are Attribute, and Op could be '='. Here I remain use Operator class is for future that we can add '>', '<', '>=', '<=' operators.


Variable Index

 o Op
 o Oprand1
 o Oprand2

Constructor Index

 o JoinCondition(Attribute, Operator, Attribute)

Method Index

 o dependsOn(RelationList)
test if the JC is fully dependes on the Relation List.
 o getOpd1()
 o getOpd2()
 o getSQL()
Generate a part of SQL.
 o refers(Relation)
Test if a Relation is involved in this Join Condition.

Variables

 o Oprand1
 Attribute Oprand1
 o Oprand2
 Attribute Oprand2
 o Op
 Operator Op

Constructors

 o JoinCondition
 public JoinCondition(Attribute Attr1,
                      Operator newOp,
                      Attribute Attr2) throws Exception

Methods

 o getOpd1
 public Attribute getOpd1()
 o getOpd2
 public Attribute getOpd2()
 o dependsOn
 public boolean dependsOn(RelationList RList) throws Exception
test if the JC is fully dependes on the Relation List. It used for checking if a new JC is defined on the Relation List of Join List of a PSJ View. If used for preventing some inconsistency between Relation List and a Join Condition List.

 o refers
 public boolean refers(Relation Ref) throws Exception
Test if a Relation is involved in this Join Condition.

 o getSQL
 public String getSQL()
Generate a part of SQL. Convert Join Condition to : R.A = S.B


All Packages  Class Hierarchy  This Package  Previous  Next  Index