|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectfunctionalDependency.general.RelationalDatabaseSchema
public class RelationalDatabaseSchema
Die Klasse RelationalDatabaseSchema
repraesentiert ein relationales
Datenbankschema. Dieses besteht aus einer Attributmenge (attributes
),
einer Menge funktionaler Abhaengigkeiten fds
und einer Menge von
Relationsschemata (dbSchema
).
Implementiert sind neben den Konstruktoren die Methoden
parseDBSchemaFromLine(String)
: Parsen eines Strings und Konstruktion
eines RelationalDatabaseSchema
add(FunctionalDependency)
, addSchema(RelationSchema)
:
Hinzufuegen einer FD oder eines weiteren Relationsschema zum Datenbankschema
createUniversalRelationSchema(String)
: Erstellen eines universellen
Datenbankschemas
Im Rahmen der Aufgabenstellung sind in dieser Klasse die Methoden
convertInto3NF()
: zur abhaengigkeitserhaltenden und verlustlosen
Zerlegung in ein Schema in 3. Normalform (Synthesealgorithmus)
(8 Punkte)
convertIntoBCNF()
: zur verlustlosen Zerlegung in ein Schema in BCNF
(Dekompositionsalgorithmus)
(8 Punkte)
synthese()
und decomposition()
erweitert werden.
Constructor Summary | |
---|---|
RelationalDatabaseSchema(AttributeSet attr,
SetOfFDs fd)
|
|
RelationalDatabaseSchema(java.lang.String attr,
SetOfFDs fd)
|
Method Summary | |
---|---|
void |
addSchema(RelationSchema r)
Fuegt dem aktuellen relationalen Datenbankschema ein Relationsschema hinzu. |
RelationalDatabaseSchema |
clone()
|
RelationalDatabaseSchema |
convertInto3NF()
Diese Methode zerlegt das relationale Datenbankschema abhaengigkeitserhaltend und verlustlosen in ein Schema in 3. |
RelationalDatabaseSchema |
convertIntoBCNF()
Diese Methode zerlegt das relationale Datenbankschema verlustlos in ein Schema in Boyce-Codd-Normalform. |
boolean |
equals(java.lang.Object o)
|
boolean |
equals(RelationalDatabaseSchema s)
|
AttributeSet |
getAttributes()
|
SetOfFDs |
getBase()
|
SetOfFDs |
getFDs()
|
SetOfRelationSchemata |
getRelations()
|
static RelationalDatabaseSchema |
parseDBSchemaFromLine(java.lang.String line)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RelationalDatabaseSchema(java.lang.String attr, SetOfFDs fd) throws MainException
MainException
public RelationalDatabaseSchema(AttributeSet attr, SetOfFDs fd) throws MainException
MainException
Method Detail |
---|
public static RelationalDatabaseSchema parseDBSchemaFromLine(java.lang.String line) throws MainException
MainException
public void addSchema(RelationSchema r) throws MainException
rs
- das Relationsschema, das hinzugefuegt werden soll
MainException
public SetOfRelationSchemata getRelations()
public AttributeSet getAttributes()
public SetOfFDs getFDs()
public SetOfFDs getBase() throws MainException
MainException
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public boolean equals(RelationalDatabaseSchema s)
public RelationalDatabaseSchema clone()
clone
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public RelationalDatabaseSchema convertInto3NF() throws MainException
synthese()
implementiert ist.
MainException
public RelationalDatabaseSchema convertIntoBCNF() throws MainException
decomposition()
implementiert ist.
MainException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |