Class Db2TargetDatabaseConfiguration
- java.lang.Object
-
- de.akquinet.jbosscc.guttenbase.configuration.impl.AbstractDatabaseConfiguration
-
- de.akquinet.jbosscc.guttenbase.configuration.impl.DefaultTargetDatabaseConfiguration
-
- de.akquinet.jbosscc.guttenbase.configuration.impl.Db2TargetDatabaseConfiguration
-
- All Implemented Interfaces:
DatabaseConfiguration
,TargetDatabaseConfiguration
public class Db2TargetDatabaseConfiguration extends DefaultTargetDatabaseConfiguration
Implementation for IBM DB2 data base.- Author:
- M. Dahm
- See Also:
- http://stackoverflow.com/questions/421518/is-there-a-way-to-enable-disable-constraints-in-db2-v7
© 2012-2034 akquinet tech@spree
-
-
Field Summary
-
Fields inherited from class de.akquinet.jbosscc.guttenbase.configuration.impl.AbstractDatabaseConfiguration
_connectorRepository
-
-
Constructor Summary
Constructors Constructor Description Db2TargetDatabaseConfiguration(ConnectorRepository connectorRepository)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
finalizeTargetConnection(Connection connection, String connectorId)
Called after actions have been performed.void
initializeTargetConnection(Connection connection, String connectorId)
Connection is set autocommit false.-
Methods inherited from class de.akquinet.jbosscc.guttenbase.configuration.impl.DefaultTargetDatabaseConfiguration
afterInsert, afterNewRow, beforeInsert, beforeNewRow, isMayCommit
-
Methods inherited from class de.akquinet.jbosscc.guttenbase.configuration.impl.AbstractDatabaseConfiguration
afterTableCopy, beforeTableCopy, executeSQL
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.akquinet.jbosscc.guttenbase.configuration.DatabaseConfiguration
afterTableCopy, beforeTableCopy
-
-
-
-
Constructor Detail
-
Db2TargetDatabaseConfiguration
public Db2TargetDatabaseConfiguration(ConnectorRepository connectorRepository)
-
-
Method Detail
-
initializeTargetConnection
public void initializeTargetConnection(Connection connection, String connectorId) throws SQLException
Connection is set autocommit false.Called before any action is performed which may alter the state of the target data base.
Implementing classes usually disable foreign key and other constraints temporarily.
- Specified by:
initializeTargetConnection
in interfaceTargetDatabaseConfiguration
- Overrides:
initializeTargetConnection
in classDefaultTargetDatabaseConfiguration
- Throws:
SQLException
-
finalizeTargetConnection
public void finalizeTargetConnection(Connection connection, String connectorId) throws SQLException
Called after actions have been performed.Implementing classes usually re-enable foreign key and other constraints.
- Specified by:
finalizeTargetConnection
in interfaceTargetDatabaseConfiguration
- Overrides:
finalizeTargetConnection
in classDefaultTargetDatabaseConfiguration
- Throws:
SQLException
-
-