com.mchange.v1.db.sql
Class XmlSchema

java.lang.Object
  extended by com.mchange.v1.db.sql.XmlSchema
All Implemented Interfaces:
Schema

public class XmlSchema
extends Object
implements Schema


Constructor Summary
XmlSchema()
           
XmlSchema(InputStream xmlStream)
           
XmlSchema(URL xmlSchema)
           
 
Method Summary
 void createSchema(Connection con)
           
 void dropSchema(Connection con)
           
 String getStatementText(String appName, String stmtName)
           
static void main(String[] argv)
           
 void parse(InputStream is)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlSchema

public XmlSchema(URL xmlSchema)
          throws SAXException,
                 IOException,
                 ParserConfigurationException
Throws:
SAXException
IOException
ParserConfigurationException

XmlSchema

public XmlSchema(InputStream xmlStream)
          throws SAXException,
                 IOException,
                 ParserConfigurationException
Throws:
SAXException
IOException
ParserConfigurationException

XmlSchema

public XmlSchema()
Method Detail

parse

public void parse(InputStream is)
           throws SAXException,
                  IOException,
                  ParserConfigurationException
Throws:
SAXException
IOException
ParserConfigurationException

getStatementText

public String getStatementText(String appName,
                               String stmtName)
Specified by:
getStatementText in interface Schema

createSchema

public void createSchema(Connection con)
                  throws SQLException
Specified by:
createSchema in interface Schema
Throws:
SQLException

dropSchema

public void dropSchema(Connection con)
                throws SQLException
Specified by:
dropSchema in interface Schema
Throws:
SQLException

main

public static void main(String[] argv)