org.xmlBlaster.contrib.dbupdate
Class JdbcShuffler
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
JdbcShuffler
public JdbcShuffler(java.lang.String[] args)
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)
Copyright © 1999-2014 The xmlBlaster.org contributers.