| |
|
| java.lang.Object xui.samples.carousel.database.TransferManager
TransferManager | public class TransferManager (Code) | | Transfer data between two JDBC databases
$Revision: 1.1 $
|
dropTables | protected boolean dropTables(Code) | | |
sourceConnectionString | protected String sourceConnectionString(Code) | | |
targetConnectionString | protected String targetConnectionString(Code) | | |
TransferManager | public TransferManager()(Code) | | Creates a new instance of TransferManager
|
clearTable | public void clearTable(String tableName)(Code) | | Empty the table of existing data
Parameters: tableName - the name of the table to delete/drop |
closeConnections | public void closeConnections()(Code) | | Setup a connection to the target or sink database
|
copyTableData | public void copyTableData(String tableName)(Code) | | Copy the table's data
Parameters: tableName - the name of the table |
copyTables | public void copyTables()(Code) | | Copy tables between the source and sink
|
createTable | public void createTable(String tableName)(Code) | | Create a table in the target database
Parameters: tableName - the name of the table to delete/drop |
doTransfer | public void doTransfer()(Code) | | |
dropTable | public void dropTable(String tableName)(Code) | | Drop the target table if it exists
Parameters: tableName - the name of the table to delete/drop |
getConnection | public Connection getConnection(String driver, String urlStr, String userName, String password)(Code) | | Gets a database connection
Parameters: driver - the jdbc driver class name Parameters: urlStr - the url of the database Parameters: userName - the user name to use in making the connections Parameters: password - the connection password |
getConnectionParameters | public boolean getConnectionParameters(boolean isSource)(Code) | | Ask the user for the connection parameters
Parameters: isSource - true if the source parameters are being queried true if the input is ok |
setupDataSource | public void setupDataSource()(Code) | | Setup a connection to the source database
|
setupDataTarget | public void setupDataTarget()(Code) | | Setup a connection to the target or sink database
|
|
|
|