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

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

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

import de.akquinet.jbosscc.guttenbase.meta.DatabaseMetaData;
import de.akquinet.jbosscc.guttenbase.meta.TableMetaData;
import de.akquinet.jbosscc.guttenbase.repository.ConnectorRepository;

/**
 * Export schema information and table data to some custom format.
 * 
 * 

* © 2012 akquinet tech@spree *

* * @author M. Dahm */ public interface Exporter { /** * Start exporting to a file. */ void initializeExport(ConnectorRepository connectorRepository, String connectorId, final ExportDumpConnectorInfo exportDumpConnectionInfo) throws Exception; /** * Finish export */ void finishExport() throws Exception; /** * Write table header when executing an INSERT statement. This is necessary to mark where data for a given table starts since some tables * may be skipped during import. The header is written only once in fact. */ void writeTableHeader(ExportTableHeader exportTableHeader) throws Exception; /** * Dump database information */ void writeDatabaseMetaData(DatabaseMetaData sourceDatabaseMetaData) throws Exception; /** * Called before copying of a table starts. */ void initializeWriteTableData(TableMetaData tableMetaData) throws Exception; /** * Called after copying of a table ends. */ void finalizeWriteTableData(TableMetaData tableMetaData) throws Exception; /** * Called before copying of a table row starts. */ void initializeWriteRowData(TableMetaData tableMetaData) throws Exception; /** * Called after copying of a table row ends. */ void finalizeWriteRowData(TableMetaData tableMetaData) throws Exception; /** * Allow the implementation to flush its buffers. This method is called by {@link ExportDumpConnection#commit()}. */ void flush() throws Exception; void writeObject(Object obj) throws Exception; }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy