EVEDemo.SWEEP
Class RelationList

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

public class RelationList
extends java.lang.Object
implements java.io.Serializable

RelationList The Relation here must be unique. P.S. If the Relations with different Alias, they are different

See Also:
Serialized Form

Field Summary
(package private)  java.util.Vector RList
           
 
Constructor Summary
RelationList()
           
 
Method Summary
 void add(Relation R)
          Add One Relation in the Relation list.
 void drop(Relation R)
          Drop One Relation in the Relation List.
 boolean find(Relation R)
          This function will find the EXACT Relation.
 java.lang.String getSQL()
          Return the a part of SQL back.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

RList

java.util.Vector RList
Constructor Detail

RelationList

public RelationList()
Method Detail

add

public void add(Relation R)
         throws java.lang.Exception
Add One Relation in the Relation list.

drop

public void drop(Relation R)
          throws java.lang.Exception
Drop One Relation in the Relation List. This function will only drop the EXACTLY Relation from the Relation List Not by name(, alias). So, it should be another drop(String RName).

find

public boolean find(Relation R)
             throws java.lang.Exception
This function will find the EXACT Relation.

getSQL

public java.lang.String getSQL()
Return the a part of SQL back. The SQL is used for CreateViewUpdate, to make the view at the first time. E.g If we have view definition like: ... FROM R1, R2 ..., then it return "R1, R2"