org.clazzes.jdbc2xml.tools
Class Main

java.lang.Object
  extended by org.clazzes.jdbc2xml.tools.Main

public class Main
extends java.lang.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 java.lang.String command
           
protected static java.sql.Connection fromConnection
           
protected static boolean fromDBNeeded
           
protected static Dialect fromDialect
           
protected static java.lang.String fromDriverName
           
protected static java.io.File fromFile
           
protected static java.lang.String fromFileName
           
protected static boolean fromFileNeeded
           
protected static java.lang.String fromPasswd
           
protected static java.lang.String fromURL
           
protected static java.lang.String fromUser
           
protected static int iarg
           
protected static ProcessRestrictionFilter processRestrictionFilter
           
static java.lang.String syntax
           
protected static java.lang.String tempDB
           
protected static boolean tempDBNeeded
           
protected static java.util.TimeZone timeZone
           
protected static java.sql.Connection toConnection
           
protected static boolean toDBNeeded
           
protected static Dialect toDialect
           
protected static java.lang.String toDriverName
           
protected static java.io.File toFile
           
protected static java.lang.String toFileName
           
protected static boolean toFileNeeded
           
protected static java.lang.String toPasswd
           
protected static java.lang.String toURL
           
protected static java.lang.String toUser
           
protected static int verbosity
           
 
Constructor Summary
Main()
           
 
Method Summary
static void main(java.lang.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 java.lang.String syntax
See Also:
Constant Field Values

iarg

protected static int iarg

command

protected static java.lang.String command

fromFileName

protected static java.lang.String fromFileName

fromFile

protected static java.io.File fromFile

toFileName

protected static java.lang.String toFileName

toFile

protected static java.io.File toFile

fromURL

protected static java.lang.String fromURL

fromUser

protected static java.lang.String fromUser

fromPasswd

protected static java.lang.String fromPasswd

fromDriverName

protected static java.lang.String fromDriverName

fromDialect

protected static Dialect fromDialect

fromConnection

protected static java.sql.Connection fromConnection

toURL

protected static java.lang.String toURL

toUser

protected static java.lang.String toUser

toPasswd

protected static java.lang.String toPasswd

toDriverName

protected static java.lang.String toDriverName

toDialect

protected static Dialect toDialect

toConnection

protected static java.sql.Connection toConnection

timeZone

protected static java.util.TimeZone timeZone

tempDB

protected static java.lang.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

processRestrictionFilter

protected static ProcessRestrictionFilter processRestrictionFilter
Constructor Detail

Main

public Main()
Method Detail

main

public static void main(java.lang.String[] args)
                 throws javax.xml.transform.TransformerConfigurationException,
                        java.sql.SQLException,
                        org.xml.sax.SAXException,
                        java.io.IOException
Parameters:
args -
Throws:
org.xml.sax.SAXException
java.sql.SQLException
javax.xml.transform.TransformerConfigurationException
java.io.IOException


Copyright © 2008. All Rights Reserved.