|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jtools.xsql.XSqlParser
Simple XML parser used for creating SQL DDL CREATE, INSERT, or DROP scripts. XSqlParser is capable of populating databases for any RDBMS I/O intensive development or testing. requires sqlschema.xml for XML structure requires sqlschema.dtd for XML validation
Constructor Summary | |
XSqlParser()
Constructor |
Method Summary | |
void |
createDdl(XSqlType type,
java.lang.String outfile)
Creates the DDL scripts |
boolean |
process(java.lang.String url)
Process the URL |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public XSqlParser()
Method Detail |
public boolean process(java.lang.String url) throws java.net.MalformedURLException
url
- a java.net.URL
path
java.net.MalformedURLException
- if URL is invalid or missing protocol
(e.g. http, file, ftp)public void createDdl(XSqlType type, java.lang.String outfile) throws java.io.IOException
type
- XSqlType
enum for CREATE, INSERT, or DROPoutfile
- the path to the output file (e.g. xsql.output.sql)
java.io.IOException
- if failure to write to file
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |