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

de.akquinet.jbosscc.guttenbase.export.ImportDumpDatabaseConfiguration Maven / Gradle / Ivy

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

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

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

/**
 * Import dump configuration forwards important events to {@link ImportDumpConnection}.
 * 
 * 

* © 2012 akquinet tech@spree *

* * @author M. Dahm */ public class ImportDumpDatabaseConfiguration extends DefaultSourceDatabaseConfiguration { public ImportDumpDatabaseConfiguration(final ConnectorRepository connectorRepository) { super(connectorRepository); } @Override public void beforeTableCopy(final Connection connection, final String connectorId, final TableMetaData table) throws SQLException { ((ImportDumpConnection) connection).initializeReadTable(table); } @Override public void afterTableCopy(final Connection connection, final String connectorId, final TableMetaData table) throws SQLException { ((ImportDumpConnection) connection).finalizeReadTable(table); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy