|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--DSRG.MKB.IS
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
Field Summary | |
java.lang.String |
DBType
Database connection type. |
java.lang.String |
DBURL
JDBC URL. |
(package private) int |
iBF
Block Size of that DBMS. |
java.lang.String |
ISName
the name of this IS |
java.lang.String |
password
JDBC Password. |
private java.util.Vector |
relations
this is a vector of objects of type DSRG.MKB.Relation |
java.lang.String |
username
JDBC Username. |
Constructor Summary | |
IS(MKB mkb,
java.lang.String ISName,
java.lang.String sDBType,
java.lang.String sDBURL,
java.lang.String sUsername,
java.lang.String sPassword,
int iBF,
boolean localIS)
Constructed used by MKBParser. |
Method Summary | |
boolean |
addRelation(Relation rel)
this is for adding empty relation objects during system initialization. |
boolean |
addRelation(java.lang.String relName,
java.util.Vector attNames,
java.util.Vector attTypes)
Add a Relation Object to this IS. |
boolean |
deleteRelation(Relation R)
deletes a relation from the relations-Vector. |
void |
displayAll()
this method displays a string-representation of this IS. |
Attribute |
findAttribute(java.lang.String RName,
java.lang.String AttName)
returns an attribute object after passing relation and attribute names. |
Relation |
findRelation(java.lang.String Name)
returns a relation object that matches the name in the parameter. |
java.util.Vector |
getAttributes(java.lang.String relName)
returns a vector of attributes that belong to the relation named in the parameter (in this IS) |
java.lang.String |
getName()
returns the name of this IS |
java.util.Vector |
getRelations()
returns a vector of the relations in this IS |
java.lang.String |
toString()
Returns a string representation of the entire (MKB) IS object |
Methods inherited from class java.lang.Object |
|
Field Detail |
public java.lang.String ISName
private java.util.Vector relations
public java.lang.String DBType
public java.lang.String DBURL
public java.lang.String username
public java.lang.String password
int iBF
Constructor Detail |
public IS(MKB mkb, java.lang.String ISName, java.lang.String sDBType, java.lang.String sDBURL, java.lang.String sUsername, java.lang.String sPassword, int iBF, boolean localIS)
Method Detail |
public java.util.Vector getRelations()
public java.util.Vector getAttributes(java.lang.String relName)
public java.lang.String getName()
public void displayAll()
public java.lang.String toString()
public Relation findRelation(java.lang.String Name)
public Attribute findAttribute(java.lang.String RName, java.lang.String AttName)
public boolean addRelation(Relation rel)
public boolean addRelation(java.lang.String relName, java.util.Vector attNames, java.util.Vector attTypes)
public boolean deleteRelation(Relation R)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |