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.io.InputStream fromStream,
java.sql.Connection toConnection,
java.util.TimeZone timeZone,
ProcessRestrictionFilter processRestrictionFilter)
|
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
xml2jdbc
public static void xml2jdbc(java.io.InputStream fromStream,
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 © 2008. All Rights Reserved.