All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.akquinet.jbosscc.guttenbase.configuration.TargetDatabaseConfiguration Maven / Gradle / Ivy

There is a newer version: 2.1.0
Show newest version
package de.akquinet.jbosscc.guttenbase.configuration;

import java.sql.Connection;
import java.sql.SQLException;

import de.akquinet.jbosscc.guttenbase.meta.TableMetaData;

/**
 * Configuration methods for target data base. Implementations may execute specific initialization code before and after operations are
 * executed.
 * 
 * 

* © 2012 akquinet tech@spree *

* * @author M. Dahm */ public interface TargetDatabaseConfiguration extends DatabaseConfiguration { /** * 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. */ void initializeTargetConnection(Connection connection, String connectorId) throws SQLException; /** * Called after actions have been performed. * * Implementing classes usually re-enable foreign key and other constraints. */ void finalizeTargetConnection(Connection connection, String connectorId) throws SQLException; /** * Called before an INSERT clause is executed. E.g., in order to disable foreign key constraints. Note that an INSERT statement may have * multiple VALUES clauses. */ void beforeInsert(final Connection connection, String connectorId, TableMetaData table) throws SQLException; /** * Called after an INSERT clause is executed. E.g., in order to re-enable foreign key constraints. */ void afterInsert(final Connection connection, String connectorId, TableMetaData table) throws SQLException; /** * Called before a new row of data (VALUES clause) is added to the INSERT statement. Note that an INSERT statement may have multiple * VALUES clauses. This method will be called for every VALUES clause. */ void beforeNewRow(final Connection connection, String connectorId, TableMetaData table) throws SQLException; /** * Called after a new row of data (VALUES clause) has been added to the INSERT statement. */ void afterNewRow(final Connection connection, String connectorId, TableMetaData table) throws SQLException; }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy