|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.bbk.dcs.automed.xml.relational.XMLDSSFromRDB
public class XMLDSSFromRDB
A DirectedGraph object contains a set of pointers to DirectedGraphNode objects and a set of pointers to other Graph objects A DirectedGraphNode object contains a name, a set of incoming edges and a set of outgoing edges, both pointing to other objects of the same type.
Create a DirectedGraph object G. Create a two-dimensional structure S which will hold information on which attributes each relation has.
For every construct C in the database schema
Divide a given graph into subgraphs:
For every DirectedGraphNode N in the set of nodes of Graph G that was not visited before:
Then convert each one to a tree and add it to the Forest object:
For every TreeNode T in the tree:
Field Summary | |
---|---|
static java.lang.String |
oracle
|
static java.lang.String |
postgres
|
Constructor Summary | |
---|---|
XMLDSSFromRDB(java.lang.String dbType,
java.lang.String username,
java.lang.String password,
java.lang.String driver,
java.lang.String url,
java.lang.String sName)
|
Method Summary | |
---|---|
void |
getAMXMLDSS()
This method first creates a network of tables, based on their foreign key dependencies. |
Schema |
getRDBDSSchema()
|
Schema |
getXMLDSSSchema()
|
void |
setXMLDSSSchema(Schema s)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String oracle
public static final java.lang.String postgres
Constructor Detail |
---|
public XMLDSSFromRDB(java.lang.String dbType, java.lang.String username, java.lang.String password, java.lang.String driver, java.lang.String url, java.lang.String sName)
dbType
- the database type, e.g. Oracleusername
- the database usernamepassword
- the database passworddriver
- the database driverurl
- the URL where the database residessName
- the schema nameMethod Detail |
---|
public void getAMXMLDSS() throws java.lang.Exception
It therefore effectively converts a relational AutoMed schema into an XMLDSS AutoMed schema.
java.lang.Exception
public Schema getXMLDSSSchema()
public Schema getRDBDSSchema()
public void setXMLDSSSchema(Schema s)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |