|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectuk.ac.ic.doc.automed.reps.RelationalOutputter
public class RelationalOutputter
Class the materialise an SQL oriented AutoMed schema
| Constructor Summary | |
|---|---|
RelationalOutputter(AutoMedPeer peer,
Schema schema)
Creates a new instance of RelationalOutputter with a default output directory for use with an AutoMed peer |
|
RelationalOutputter(Schema schema)
Creates a new instance of RelationalOutputter with a default output directory |
|
RelationalOutputter(Schema source,
Schema s,
java.lang.String dbDriver,
java.lang.String url,
java.lang.String username,
java.lang.String password)
Creates a new instance of RelationalOutputter with a given DB url, username and password |
|
| Method Summary | |
|---|---|
void |
connectToDB()
Connect to the local database |
java.lang.String |
createRelationalTables()
Create the relational tables from the automed schema objects |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RelationalOutputter(Schema schema)
throws AutoMedException
AutoMedException
public RelationalOutputter(AutoMedPeer peer,
Schema schema)
throws AutoMedException
AutoMedException
public RelationalOutputter(Schema source,
Schema s,
java.lang.String dbDriver,
java.lang.String url,
java.lang.String username,
java.lang.String password)
throws AutoMedException
source - The source schemas - The schema to be materialiseddbDriver - The db driver stringxmlDoc - Whether or not there is a XML instance documenturl - The url of the output databaseusername - The username to log into the target dbpassword - The password to log into the output db
AutoMedException - Thrown when theres a problem| Method Detail |
|---|
public java.lang.String createRelationalTables()
throws AutoMedException,
java.lang.Exception
java.lang.Exception - A SQL problem
AutoMedException - A repository problempublic void connectToDB()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||