org.clazzes.jdbc2xml.tools
Class Commands
java.lang.Object
org.clazzes.jdbc2xml.tools.Commands
public abstract class Commands
- extends java.lang.Object
Toplevel commands for importing/exporting a database.
- Author:
- lech
Method Summary |
static void |
dropTables(java.sql.Connection connection,
TableFilter filter)
|
static void |
jdbc2xml(java.sql.Connection fromConnection,
java.io.OutputStream toStream,
java.util.TimeZone timeZone,
ProcessRestrictionFilter processRestrictionFilter)
|
static void |
jdbcExtract(java.sql.Connection connection,
java.lang.String tempDB,
java.util.TimeZone timeZone,
ProcessRestrictionFilter processRestrictionFilter)
|
static void |
jdbcping(java.sql.Connection fromConnection)
|
static void |
xml2jdbc(java.lang.Object inObject,
java.sql.Connection toConnection,
java.util.TimeZone timeZone,
ProcessRestrictionFilter processRestrictionFilter)
|
static void |
xml2xml(java.lang.Object inObject,
java.io.OutputStream toStream,
ProcessRestrictionFilter processRestrictionFilter)
Convert from one XML to another XML. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Commands
public Commands()
jdbc2xml
public static void jdbc2xml(java.sql.Connection fromConnection,
java.io.OutputStream toStream,
java.util.TimeZone timeZone,
ProcessRestrictionFilter processRestrictionFilter)
throws java.io.FileNotFoundException,
javax.xml.transform.TransformerConfigurationException,
java.sql.SQLException,
org.xml.sax.SAXException
- Throws:
java.io.FileNotFoundException
javax.xml.transform.TransformerConfigurationException
java.sql.SQLException
org.xml.sax.SAXException
jdbcping
public static void jdbcping(java.sql.Connection fromConnection)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
xml2xml
public static void xml2xml(java.lang.Object inObject,
java.io.OutputStream toStream,
ProcessRestrictionFilter processRestrictionFilter)
throws org.xml.sax.SAXException,
java.util.zip.ZipException,
java.io.IOException
- Convert from one XML to another XML.
May be useful to produce a ZIP-File with separated Data-XML-Files from an existing BZIP2-XML-File.
- Parameters:
inObject
- Either a File
(in case of ZIP-File source) or a InputStream
to read from.toStream
- OutputStream
to write to.processRestrictionFilter
-
- Throws:
org.xml.sax.SAXException
java.util.zip.ZipException
java.io.IOException
xml2jdbc
public static void xml2jdbc(java.lang.Object inObject,
java.sql.Connection toConnection,
java.util.TimeZone timeZone,
ProcessRestrictionFilter processRestrictionFilter)
throws javax.xml.transform.TransformerConfigurationException,
java.sql.SQLException,
org.xml.sax.SAXException,
java.io.IOException
- Throws:
javax.xml.transform.TransformerConfigurationException
java.sql.SQLException
org.xml.sax.SAXException
java.io.IOException
jdbcExtract
public static void jdbcExtract(java.sql.Connection connection,
java.lang.String tempDB,
java.util.TimeZone timeZone,
ProcessRestrictionFilter processRestrictionFilter)
throws java.sql.SQLException,
java.io.FileNotFoundException,
javax.xml.transform.TransformerConfigurationException,
org.xml.sax.SAXException
- Throws:
java.sql.SQLException
java.io.FileNotFoundException
javax.xml.transform.TransformerConfigurationException
org.xml.sax.SAXException
dropTables
public static void dropTables(java.sql.Connection connection,
TableFilter filter)
throws java.sql.SQLException
- Parameters:
connection
- The database connection on which to drop all tables.filter
- The table filter. If null, all tables are dropped.
- Throws:
java.sql.SQLException
- Upon erros.
Copyright © 2010. All Rights Reserved.