All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class DSRG.MKB.IS

java.lang.Object
   |
   +----DSRG.MKB.IS

public class IS
extends Object
One Information Source (consists of relations)
This holds info about the IS. DBManagers are no longer accessible from here, rather the Middleware (MW) package is responsible for getting a list of IS objects and generating DBManagers from it. So this is only meta-data


Variable Index

 o DBType
Database connection type.
 o DBURL
JDBC URL.
 o iBF
Block Size of that DBMS.
 o ISName
the name of this IS
 o password
JDBC Password.
 o relations
this is a vector of objects of type DSRG.MKB.Relation
 o username
JDBC Username.

Constructor Index

 o IS(MKB, String, String, String, String, String, int, boolean)
Constructed used by MKBParser.

Method Index

 o addRelation(Relation)
this is for adding empty relation objects during system initialization.
 o addRelation(String, Vector, Vector)
Add a Relation Object to this IS.
 o deleteRelation(Relation)
deletes a relation from the relations-Vector.
 o displayAll()
this method displays a string-representation of this IS.
 o findAttribute(String, String)
returns an attribute object after passing relation and attribute names.
 o findRelation(String)
returns a relation object that matches the name in the parameter.
 o getAttributes(String)
returns a vector of attributes that belong to the relation named in the parameter (in this IS)
 o getName()
returns the name of this IS
 o getRelations()
returns a vector of the relations in this IS
 o toString()
Returns a string representation of the entire (MKB) IS object

Variables

 o ISName
 public String ISName
the name of this IS

 o relations
 private Vector relations
this is a vector of objects of type DSRG.MKB.Relation

 o DBType
 public String DBType
Database connection type. For easier initialization of the system. Now, it could be "ORACLE", and "MS_ACCESS".

 o DBURL
 public String DBURL
JDBC URL. For easier initialization of the system.

 o username
 public String username
JDBC Username. For easier initialization of the system.

 o password
 public String password
JDBC Password. For easier initialization of the system.

 o iBF
 int iBF
Block Size of that DBMS. Used for QC model.

Constructors

 o IS
 public IS(MKB mkb,
           String ISName,
           String sDBType,
           String sDBURL,
           String sUsername,
           String sPassword,
           int iBF,
           boolean localIS)
Constructed used by MKBParser. It used to create an IS object with associated DBManager.

Methods

 o getRelations
 public Vector getRelations()
returns a vector of the relations in this IS

 o getAttributes
 public Vector getAttributes(String relName)
returns a vector of attributes that belong to the relation named in the parameter (in this IS)

 o getName
 public String getName()
returns the name of this IS

 o displayAll
 public void displayAll()
this method displays a string-representation of this IS. Used for testing purposes. It calls the respective Relation.displayAll-methods recursively

 o toString
 public String toString()
Returns a string representation of the entire (MKB) IS object

Overrides:
toString in class Object
 o findRelation
 public Relation findRelation(String Name)
returns a relation object that matches the name in the parameter. Replaces getRelation(String).

Returns:
null if relation with this name does not exist
 o findAttribute
 public Attribute findAttribute(String RName,
                                String AttName)
returns an attribute object after passing relation and attribute names.

Returns:
null if nothing found
 o addRelation
 public boolean addRelation(Relation rel)
this is for adding empty relation objects during system initialization. It's called from the MKB parser.

 o addRelation
 public boolean addRelation(String relName,
                            Vector attNames,
                            Vector attTypes)
Add a Relation Object to this IS. Also creates the attribute objects.

 o deleteRelation
 public boolean deleteRelation(Relation R)
deletes a relation from the relations-Vector. Does nothing else. This should also free the attributes connected to this relation and make them ready for garbage collection. (?)


All Packages  Class Hierarchy  This Package  Previous  Next  Index