|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--DSRG.MKB.Relation
one relation (consists of attributes).
This is meta-data (MKB) only.
Field Summary | |
private java.util.Vector |
attributes
The attributes of this relation. |
private java.util.Vector |
joins
the (references) to joins in which this relation takes part |
(package private) IS |
parent
a reference to the parent IS object |
private java.util.Vector |
PCs
the (references) to PCs in which this relation takes part |
private java.lang.String |
relName
the logical name of this relation |
private int |
size
Size of this relation ( number of tuples ). |
Constructor Summary | |
Relation(IS myIS,
java.lang.String myName,
int size)
Constructor used By MKBParser. |
Method Summary | |
boolean |
addAttribute(Attribute attr)
Add an Attribute Object to this Relation. |
boolean |
addJoinConstraint(JoinConstraint theJC)
add existing join constraint object to the join list of this attribute |
boolean |
addPCConstraint(PCConstraint thePC)
add existing join constraint object to the join list of this attribute |
(package private) boolean |
changeRelationName(java.lang.String newName)
renames MKB relation object only. |
boolean |
deleteAttribute(Attribute attr)
Add an Attribute Object to this Relation. |
boolean |
deleteJoinConstraint(JoinConstraint theJC)
remove join constraint from this attribute's list (only the reference, of course) |
boolean |
deletePCConstraint(PCConstraint thePC)
remove PC constraint from this attribute's list (only the reference, of course) |
java.lang.String |
displayAll()
gives a string representation of this Relation |
private void |
displayRel()
function to be used for debugging purposes only |
Attribute |
findAttribute(java.lang.String Name)
finds an attribute object by name |
java.util.Vector |
getAttributes()
returns the vector of attributes in this relation |
java.lang.String |
getFullName()
get a string of the form ISName.RelName |
IS |
getIS()
return handle to this relation's IS |
java.lang.String |
getISName()
return name of parent IS |
java.util.Vector |
getJCs()
returns the vector of join constraints in this relation |
java.lang.String |
getName()
returns the name of this relation |
java.util.Vector |
getPCs()
returns the vector of PC constraints in this relation |
int |
getRelationSize()
returns the number of tuples as stated in the MKB file (QC-Model system parameter) |
java.util.Vector |
getTCs()
returns the vector of Type constraints in this relation. |
private static java.lang.String |
pad(java.lang.String s,
int length)
a private function for output formatting. |
java.lang.String |
toString()
Dump the Relation object. |
Methods inherited from class java.lang.Object |
|
Field Detail |
private java.lang.String relName
IS parent
private java.util.Vector attributes
private java.util.Vector joins
private java.util.Vector PCs
private int size
Constructor Detail |
public Relation(IS myIS, java.lang.String myName, int size)
Method Detail |
public java.lang.String displayAll()
public java.lang.String toString()
public java.util.Vector getAttributes()
public java.util.Vector getJCs()
public java.util.Vector getPCs()
public java.util.Vector getTCs()
public int getRelationSize()
public Attribute findAttribute(java.lang.String Name)
public boolean addJoinConstraint(JoinConstraint theJC)
public boolean deleteJoinConstraint(JoinConstraint theJC)
public boolean addPCConstraint(PCConstraint thePC)
public boolean deletePCConstraint(PCConstraint thePC)
public java.lang.String getName()
public java.lang.String getFullName()
public IS getIS()
public java.lang.String getISName()
public boolean addAttribute(Attribute attr)
public boolean deleteAttribute(Attribute attr)
boolean changeRelationName(java.lang.String newName)
private void displayRel()
private static java.lang.String pad(java.lang.String s, int length)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |