xmlBlaster 2.2.0 contributions API

org.xmlBlaster.contrib.dbupdate
Class JdbcShuffler

java.lang.Object
  extended by org.xmlBlaster.contrib.dbupdate.JdbcShuffler

public class JdbcShuffler
extends java.lang.Object

Copy all xb_entries from one database to another.

 Compile: javac JdbcShuffler.java
 
 Run:
 export CLASSPATH=.:$XMLBLASTER_HOME/lib/sqljdbc.jar:$XMLBLASTER_HOME/lib/postgresql.jar
 
 java org.xmlBlaster.contrib.dbupdate.JdbcShuffler <hostname> <from> <to>
 
    <from> and <to> is one of: SQLServer | Postgres | Oracle
 
 Example:
 java org.xmlBlaster.contrib.dbupdate.JdbcShuffler localhost SQLServer Postgres
 

Author:
Marcel Ruff

Field Summary
 java.lang.String ORACLE
           
 java.lang.String POSTGRES
           
 java.lang.String SQLSERVER
           
 
Constructor Summary
JdbcShuffler(java.lang.String[] args)
           
 
Method Summary
 void init()
           
static void main(java.lang.String[] args)
           
 void shuffle()
           
 void shutdown()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SQLSERVER

public final java.lang.String SQLSERVER
See Also:
Constant Field Values

POSTGRES

public final java.lang.String POSTGRES
See Also:
Constant Field Values

ORACLE

public final java.lang.String ORACLE
See Also:
Constant Field Values
Constructor Detail

JdbcShuffler

public JdbcShuffler(java.lang.String[] args)
Method Detail

init

public void init()
          throws java.sql.SQLException
Throws:
java.sql.SQLException

shutdown

public void shutdown()
              throws java.sql.SQLException
Throws:
java.sql.SQLException

shuffle

public void shuffle()
             throws java.sql.SQLException,
                    java.io.IOException
Throws:
java.sql.SQLException
java.io.IOException

main

public static void main(java.lang.String[] args)

xmlBlaster 2.2.0 contributions API

Copyright © 1999-2014 The xmlBlaster.org contributers.