edu.wpi.cs.DSRG.xmldb.XMLRDBMSUpdate
Class CreateDataSchema
java.lang.Object
|
+--edu.wpi.cs.DSRG.xmldb.XMLRDBMSUpdate.CreateDataSchema
- public class CreateDataSchema
- extends java.lang.Object
CreateDataSchema.java creates a relational schema for the datas to be loaded
through XML documents, the XML catalog, and the XML data view catalog.
- Since:
- 1/19/2000
Constructor Summary |
CreateDataSchema(JDBCClient client)
This constructor is used when a JDBCClient connection has already been established. |
CreateDataSchema(java.lang.String URI,
java.lang.String username,
java.lang.String password)
This constructor is used when a connection is needed to be made through
a JDBCClient. |
Method Summary |
void |
create()
The method create() creates the data tables schema based on the DTDM tables. |
void |
dropCatalogs()
The method dropCatalogs() removes the XML_CATALOG and DATAVIEW_CATALOG. |
void |
dropSchema(java.lang.String XML_URI)
The method dropSchema removes an XML relational database Schema for the given
XML. |
void |
resetCatalogs()
The method resetCatalogs() deletes the tuples to reset the XML_CATALOG and
DATAVIEW_CATALOG |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
client
JDBCClient client
CreateDataSchema
public CreateDataSchema(JDBCClient client)
- This constructor is used when a JDBCClient connection has already been established.
- Parameters:
client
- JDBCClient A JDBCClient connection
CreateDataSchema
public CreateDataSchema(java.lang.String URI,
java.lang.String username,
java.lang.String password)
- This constructor is used when a connection is needed to be made through
a JDBCClient.
- Parameters:
URI
- String URI for the database serverusername
- String Username for that databasepassword
- String Password for the username
dropCatalogs
public void dropCatalogs()
- The method dropCatalogs() removes the XML_CATALOG and DATAVIEW_CATALOG.
resetCatalogs
public void resetCatalogs()
- The method resetCatalogs() deletes the tuples to reset the XML_CATALOG and
DATAVIEW_CATALOG
dropSchema
public void dropSchema(java.lang.String XML_URI)
throws java.lang.Exception
- The method dropSchema removes an XML relational database Schema for the given
XML.
- Parameters:
XML_URI
- String URI for the XML document to which you want schema dropped
create
public void create()
- The method create() creates the data tables schema based on the DTDM tables.
A table will be created for each item of the ALL_DTDS_DTDM_Items table.
Also, this method creates the XML_CATALOG table to store the URI and internal id
relationships for XML documents and the DATAVIEW_CATALOG which stores the
name of the current view for each data table.