EVEDemo.SWEEP
Class JoinCondition

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

public class JoinCondition
extends java.lang.Object
implements java.io.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.

See Also:
Serialized Form

Field Summary
(package private)  Operator Op
           
(package private)  Attribute Oprand1
           
(package private)  Attribute Oprand2
           
 
Constructor Summary
JoinCondition(Attribute Attr1, Operator newOp, Attribute Attr2)
           
 
Method Summary
 boolean dependsOn(RelationList RList)
          test if the JC is fully dependes on the Relation List.
 Attribute getOpd1()
           
 Attribute getOpd2()
           
 java.lang.String getSQL()
          Generate a part of SQL.
 boolean refers(Relation Ref)
          Test if a Relation is involved in this Join Condition.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

Oprand1

Attribute Oprand1

Oprand2

Attribute Oprand2

Op

Operator Op
Constructor Detail

JoinCondition

public JoinCondition(Attribute Attr1,
                     Operator newOp,
                     Attribute Attr2)
              throws java.lang.Exception
Method Detail

getOpd1

public Attribute getOpd1()

getOpd2

public Attribute getOpd2()

dependsOn

public boolean dependsOn(RelationList RList)
                  throws java.lang.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.

refers

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

getSQL

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