org.clazzes.jdbc2xml.tools
Class Main
java.lang.Object
org.clazzes.jdbc2xml.tools.Main
public class Main
- extends Object
Usage example jdbc2xml mysql:
java -cp target/classes:/usr/share/java/mysql.jar org.clazzes.jdbc2xml.tools.ConnectionMain --jdbc2xml \
--url jdbc:mysql://localhost:3306/foodb --user root --password secret --to-file foodb.xml
Usage example jdbcping mysql:
java -cp target/classes:/usr/share/java/mysql.jar org.clazzes.jdbc2xml.tools.ConnectionMain --jdbcping \
--url jdbc:mysql://localhost:3306/foodb --user root --password secret
Usage example jdbcping ms sql server (note the " to protect the ; in the URL!):
java -cp target/classes:/opt/java/lib/sqljdbc.jar org.clazzes.jdbc2xml.tools.Main --jdbcping \
--url "jdbc:sqlserver://localhost:1433;databaseName=foodb;user=Administrator;password=secret;"
As we have not written a wrapper script yet, let's suggest a valid full classpath:
target/classes:/opt/java/lib/sqljdbc.jar:/usr/share/java/mysql.jar:/usr/share/java/commons-logging.jar:/usr/share/java/commons-logging-api.jar:~/.m2/repository/org/clazzes/util/0.3.4/util-0.3.4.jar
- Author:
- wglas
Constructor Summary |
Main()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
syntax
public static final String syntax
- See Also:
- Constant Field Values
iarg
protected static int iarg
command
protected static String command
fromFileName
protected static String fromFileName
fromFile
protected static File fromFile
fromIS
protected static InputStream fromIS
toFileName
protected static String toFileName
toOS
protected static OutputStream toOS
compression
protected static Integer compression
fromURL
protected static String fromURL
fromUser
protected static String fromUser
fromPasswd
protected static String fromPasswd
fromDriverName
protected static String fromDriverName
fromDialect
protected static Dialect fromDialect
fromConnection
protected static Connection fromConnection
toURL
protected static String toURL
toUser
protected static String toUser
toPasswd
protected static String toPasswd
toDriverName
protected static String toDriverName
toDialect
protected static Dialect toDialect
toConnection
protected static Connection toConnection
timeZone
protected static TimeZone timeZone
tempDB
protected static String tempDB
verbosity
protected static int verbosity
fromFileNeeded
protected static boolean fromFileNeeded
toFileNeeded
protected static boolean toFileNeeded
fromDBNeeded
protected static boolean fromDBNeeded
toDBNeeded
protected static boolean toDBNeeded
tempDBNeeded
protected static boolean tempDBNeeded
dropTables
protected static boolean dropTables
processRestrictionFilter
protected static ProcessRestrictionFilter processRestrictionFilter
Main
public Main()
main
public static void main(String[] args)
throws TransformerConfigurationException,
SQLException,
SAXException,
IOException
- Parameters:
args
-
- Throws:
SAXException
SQLException
TransformerConfigurationException
IOException
Copyright © 2012. All Rights Reserved.