Class AbstractTableCopyTool
- java.lang.Object
-
- de.akquinet.jbosscc.guttenbase.tools.AbstractTableCopyTool
-
- Direct Known Subclasses:
DefaultTableCopyTool
,SplitByRangeTableCopyTool
public abstract class AbstractTableCopyTool extends Object
Copy all tables from one connection to the other.© 2012-2034 akquinet tech@spree
- Author:
- M. Dahm
Hint is used by
NumberOfRowsPerBatchHint
to determine number of VALUES clauses in INSERT statement Hint is used byMaxNumberOfDataItemsHint
to determine maximum number of data items in INSERT statement Hint is used byTableOrderHint
to determine order of tables
-
-
Field Summary
Fields Modifier and Type Field Description protected ConnectorRepository
_connectorRepository
protected TableCopyProgressIndicator
_progressIndicator
-
Constructor Summary
Constructors Constructor Description AbstractTableCopyTool(ConnectorRepository connectorRepository)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract void
copyTable(String sourceConnectorId, Connection sourceConnection, SourceDatabaseConfiguration sourceDatabaseConfiguration, TableMetaData sourceTableMetaData, String sourceTableName, String targetConnectorId, Connection targetConnection, TargetDatabaseConfiguration targetDatabaseConfiguration, TableMetaData targetTableMetaData, String targetTableName, int numberOfRowsPerBatch, boolean useMultipleValuesClauses)
void
copyTables(String sourceConnectorId, String targetConnectorId)
Copy tables from source to target.
-
-
-
Field Detail
-
_connectorRepository
protected final ConnectorRepository _connectorRepository
-
_progressIndicator
protected TableCopyProgressIndicator _progressIndicator
-
-
Constructor Detail
-
AbstractTableCopyTool
public AbstractTableCopyTool(ConnectorRepository connectorRepository)
-
-
Method Detail
-
copyTables
public final void copyTables(String sourceConnectorId, String targetConnectorId) throws SQLException
Copy tables from source to target.- Throws:
SQLException
-
copyTable
protected abstract void copyTable(String sourceConnectorId, Connection sourceConnection, SourceDatabaseConfiguration sourceDatabaseConfiguration, TableMetaData sourceTableMetaData, String sourceTableName, String targetConnectorId, Connection targetConnection, TargetDatabaseConfiguration targetDatabaseConfiguration, TableMetaData targetTableMetaData, String targetTableName, int numberOfRowsPerBatch, boolean useMultipleValuesClauses) throws SQLException
- Throws:
SQLException
-
-