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
-
DBType
- Database connection type.
-
DBURL
- JDBC URL.
-
iBF
- Block Size of that DBMS.
-
ISName
- the name of this IS
-
password
- JDBC Password.
-
relations
- this is a vector of objects of type DSRG.MKB.Relation
-
username
- JDBC Username.
-
IS(MKB, String, String, String, String, String, int, boolean)
- Constructed used by MKBParser.
-
addRelation(Relation)
- this is for adding empty relation objects during system
initialization.
-
addRelation(String, Vector, Vector)
- Add a Relation Object to this IS.
-
deleteRelation(Relation)
- deletes a relation from the relations-Vector.
-
displayAll()
- this method displays a string-representation of this IS.
-
findAttribute(String, String)
- returns an attribute object after passing relation and
attribute names.
-
findRelation(String)
- returns a relation object that matches the name in the
parameter.
-
getAttributes(String)
- returns a vector of attributes that belong to the relation
named in the parameter (in this IS)
-
getName()
- returns the name of this IS
-
getRelations()
- returns a vector of the relations in this IS
-
toString()
- Returns a string representation of the entire (MKB) IS object
ISName
public String ISName
- the name of this IS
relations
private Vector relations
- this is a vector of objects of type DSRG.MKB.Relation
DBType
public String DBType
- Database connection type. For easier initialization of the
system. Now, it could be "ORACLE", and "MS_ACCESS".
DBURL
public String DBURL
- JDBC URL. For easier initialization of the system.
username
public String username
- JDBC Username. For easier initialization of the system.
password
public String password
- JDBC Password. For easier initialization of the system.
iBF
int iBF
- Block Size of that DBMS. Used for QC model.
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.
getRelations
public Vector getRelations()
- returns a vector of the relations in this IS
getAttributes
public Vector getAttributes(String relName)
- returns a vector of attributes that belong to the relation
named in the parameter (in this IS)
getName
public String getName()
- returns the name of this IS
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
toString
public String toString()
- Returns a string representation of the entire (MKB) IS object
- Overrides:
- toString in class Object
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
findAttribute
public Attribute findAttribute(String RName,
String AttName)
- returns an attribute object after passing relation and
attribute names.
- Returns:
- null if nothing found
addRelation
public boolean addRelation(Relation rel)
- this is for adding empty relation objects during system
initialization. It's called from the MKB parser.
addRelation
public boolean addRelation(String relName,
Vector attNames,
Vector attTypes)
- Add a Relation Object to this IS. Also creates the attribute objects.
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