com.partnersoft.io.sql
Class DatabaseCopyTool

java.lang.Object
  extended by com.partnersoft.io.sql.DatabaseCopyTool

public class DatabaseCopyTool
extends java.lang.Object

A tool that attempts to make a copy of a database, potentially from one type of database to another.

Copyright 2001-2007 Partner Software, Inc.

Version:
$Id: DatabaseCopyTool.java 1012 2007-11-24 18:30:02Z paul $
Author:
Paul Reavis

Constructor Summary
DatabaseCopyTool(DatabaseConnection source, DatabaseConnection destination)
           
DatabaseCopyTool(DatabaseConnection source, DatabaseConnection destination, Naming tables)
           
 
Method Summary
 void copy()
          Copies all tables from the source to the destination.
 void copyTable(java.lang.String tableName, java.lang.String query)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DatabaseCopyTool

public DatabaseCopyTool(DatabaseConnection source,
                        DatabaseConnection destination)

DatabaseCopyTool

public DatabaseCopyTool(DatabaseConnection source,
                        DatabaseConnection destination,
                        Naming tables)
Method Detail

copy

public void copy()
          throws java.sql.SQLException
Copies all tables from the source to the destination.

Throws:
java.sql.SQLException

copyTable

public void copyTable(java.lang.String tableName,
                      java.lang.String query)
               throws java.sql.SQLException
Throws:
java.sql.SQLException