org.clazzes.jdbc2xml.tools
Class Main

java.lang.Object
  extended by 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

Field Summary
protected static String command
           
protected static Integer compression
           
protected static boolean dropTables
           
protected static Connection fromConnection
           
protected static boolean fromDBNeeded
           
protected static Dialect fromDialect
           
protected static String fromDriverName
           
protected static File fromFile
           
protected static String fromFileName
           
protected static boolean fromFileNeeded
           
protected static InputStream fromIS
           
protected static String fromPasswd
           
protected static String fromURL
           
protected static String fromUser
           
protected static int iarg
           
protected static ProcessRestrictionFilter processRestrictionFilter
           
static String syntax
           
protected static String tempDB
           
protected static boolean tempDBNeeded
           
protected static TimeZone timeZone
           
protected static Connection toConnection
           
protected static boolean toDBNeeded
           
protected static Dialect toDialect
           
protected static String toDriverName
           
protected static String toFileName
           
protected static boolean toFileNeeded
           
protected static OutputStream toOS
           
protected static String toPasswd
           
protected static String toURL
           
protected static String toUser
           
protected static int verbosity
           
 
Constructor Summary
Main()
           
 
Method Summary
static void main(String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

Main

public Main()
Method Detail

main

public static void main(String[] args)
                 throws TransformerConfigurationException,
                        SQLException,
                        SAXException,
                        IOException
Parameters:
args -
Throws:
SAXException
SQLException
TransformerConfigurationException
IOException


Copyright © 2011. All Rights Reserved.