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

de.akquinet.jbosscc.guttenbase.configuration.impl.DefaultTargetDatabaseConfiguration Maven / Gradle / Ivy

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

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

import de.akquinet.jbosscc.guttenbase.configuration.TargetDatabaseConfiguration;
import de.akquinet.jbosscc.guttenbase.meta.TableMetaData;
import de.akquinet.jbosscc.guttenbase.repository.ConnectorRepository;

/**
 * (Almost) empty implementation
 * 
 * 

* © 2012 akquinet tech@spree *

* * @author M. Dahm */ public abstract class DefaultTargetDatabaseConfiguration extends AbstractDatabaseConfiguration implements TargetDatabaseConfiguration { public DefaultTargetDatabaseConfiguration(final ConnectorRepository connectorRepository) { super(connectorRepository); } /** * Connection is set autocommit false. * * {@inheritDoc} */ @Override public void initializeTargetConnection(final Connection connection, final String connectorId) throws SQLException { connection.setAutoCommit(false); } /** * {@inheritDoc} */ @Override public void finalizeTargetConnection(final Connection connection, final String connectorId) throws SQLException { } /** * {@inheritDoc} */ @Override public void beforeInsert(final Connection connection, final String connectorId, final TableMetaData table) throws SQLException { } /** * {@inheritDoc} */ @Override public void afterInsert(final Connection connection, final String connectorId, final TableMetaData table) throws SQLException { } /** * {@inheritDoc} */ @Override public void beforeNewRow(final Connection connection, final String connectorId, final TableMetaData table) throws SQLException { } /** * {@inheritDoc} */ @Override public void afterNewRow(final Connection connection, final String connectorId, final TableMetaData table) throws SQLException { } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy