public class DBConvert
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static org.apache.commons.logging.Log |
LOG |
private DatabaseAccess |
source |
private DatabaseAccess |
target |
Constructor and Description |
---|
DBConvert() |
Modifier and Type | Method and Description |
---|---|
private void |
copyHistoricTable(java.sql.Connection sourceConn,
java.sql.Connection targetConn,
java.lang.String tableName) |
private void |
copyTable(java.sql.Connection sourceConn,
java.sql.Connection targetConn,
java.lang.String tableName) |
void |
execute() |
private java.lang.String[] |
getHistoricDepTableNames() |
private java.lang.String[] |
getHistoricTableNames() |
private java.lang.String[] |
getTableNames() |
void |
setSource(DatabaseAccess source) |
void |
setTarget(DatabaseAccess target) |
private static final org.apache.commons.logging.Log LOG
private DatabaseAccess source
private DatabaseAccess target
public void setSource(DatabaseAccess source)
public void setTarget(DatabaseAccess target)
public void execute() throws java.sql.SQLException
java.sql.SQLException
private java.lang.String[] getTableNames()
private java.lang.String[] getHistoricTableNames()
private java.lang.String[] getHistoricDepTableNames()
private void copyTable(java.sql.Connection sourceConn, java.sql.Connection targetConn, java.lang.String tableName) throws java.sql.SQLException
java.sql.SQLException
private void copyHistoricTable(java.sql.Connection sourceConn, java.sql.Connection targetConn, java.lang.String tableName) throws java.sql.SQLException
java.sql.SQLException