com.partnersoft.sql
Class DatabaseCopyTool

java.lang.Object
  extended by com.partnersoft.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-2008 Partner Software, Inc.

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

Constructor Summary
DatabaseCopyTool(SqlConnection source, SqlConnection destination)
           
DatabaseCopyTool(SqlConnection source, SqlConnection destination, Naming tables)
           
 
Method Summary
 void copy()
          Copies all tables from the source to the destination.
 void copyTable(java.lang.String tableName)
           
 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(SqlConnection source,
                        SqlConnection destination)

DatabaseCopyTool

public DatabaseCopyTool(SqlConnection source,
                        SqlConnection 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)
               throws java.sql.SQLException
Throws:
java.sql.SQLException

copyTable

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