Class AbstractTablesOperationTool
- java.lang.Object
-
- de.akquinet.jbosscc.guttenbase.tools.AbstractTablesOperationTool
-
- Direct Known Subclasses:
Db2ReorgIndexesTablesTool,Db2ReorgTablesTool,DerbyCompressTablesTool,MSSqlReorgTablesTool,MySqlReorgTablesTool,PostgresqlReindexTablesTool,PostgresqlVacuumTablesTool
public abstract class AbstractTablesOperationTool extends Object
Will execute given SQL scriptlet on all tables or single table of given connector. The table name can be referenced with @TABLE@ placeholder.© 2012-2034 akquinet tech@spree
- Author:
- M. Dahm
Hint is used by
TableMapperHint
-
-
Field Summary
Fields Modifier and Type Field Description protected ConnectorRepository_connectorRepositoryprotected ScriptExecutorTool_scriptExecutorstatic StringTABLE_PLACEHOLDER
-
Constructor Summary
Constructors Constructor Description AbstractTablesOperationTool(ConnectorRepository connectorRepository, String template)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecuteOnAllTables(String connectorId, boolean updateSchema, boolean prepareTargetConnection)voidexecuteOnTable(String connectorId, boolean updateSchema, boolean prepareTargetConnection, TableMetaData tableMetaData)booleanisApplicableOnTable(TableMetaData tableMetaData)Override this method for specific tests
-
-
-
Field Detail
-
TABLE_PLACEHOLDER
public static final String TABLE_PLACEHOLDER
- See Also:
- Constant Field Values
-
_connectorRepository
protected final ConnectorRepository _connectorRepository
-
_scriptExecutor
protected final ScriptExecutorTool _scriptExecutor
-
-
Constructor Detail
-
AbstractTablesOperationTool
public AbstractTablesOperationTool(ConnectorRepository connectorRepository, String template)
-
-
Method Detail
-
executeOnAllTables
public void executeOnAllTables(String connectorId, boolean updateSchema, boolean prepareTargetConnection) throws SQLException
- Throws:
SQLException
-
executeOnTable
public void executeOnTable(String connectorId, boolean updateSchema, boolean prepareTargetConnection, TableMetaData tableMetaData) throws SQLException
- Throws:
SQLException
-
isApplicableOnTable
public boolean isApplicableOnTable(TableMetaData tableMetaData)
Override this method for specific tests
-
-