Class MariaDbTargetDatabaseConfiguration
- java.lang.Object
-
- de.akquinet.jbosscc.guttenbase.configuration.impl.AbstractDatabaseConfiguration
-
- de.akquinet.jbosscc.guttenbase.configuration.impl.DefaultTargetDatabaseConfiguration
-
- de.akquinet.jbosscc.guttenbase.configuration.impl.MariaDbTargetDatabaseConfiguration
-
- All Implemented Interfaces:
DatabaseConfiguration
,TargetDatabaseConfiguration
public class MariaDbTargetDatabaseConfiguration extends DefaultTargetDatabaseConfiguration
Implementation for MARIADB data base.© 2012-2034 akquinet tech@spree
- Author:
- M. Dahm
-
-
Field Summary
-
Fields inherited from class de.akquinet.jbosscc.guttenbase.configuration.impl.AbstractDatabaseConfiguration
_connectorRepository
-
-
Constructor Summary
Constructors Constructor Description MariaDbTargetDatabaseConfiguration(ConnectorRepository connectorRepository)
MariaDbTargetDatabaseConfiguration(ConnectorRepository connectorRepository, boolean disableUniqueChecks)
-
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
-
MariaDbTargetDatabaseConfiguration
public MariaDbTargetDatabaseConfiguration(ConnectorRepository connectorRepository, boolean disableUniqueChecks)
- Parameters:
connectorRepository
-disableUniqueChecks
- disable unique checks, too. Not just foreign key constraints.
-
MariaDbTargetDatabaseConfiguration
public MariaDbTargetDatabaseConfiguration(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
-
-