Interface Exporter
-
- All Known Implementing Classes:
PlainGzipExporter,ZipExporter
public interface ExporterExport schema information and table data to some custom format.© 2012-2034 akquinet tech@spree
- Author:
- M. Dahm
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidfinalizeWriteRowData(TableMetaData tableMetaData)Called after copying of a table row ends.voidfinalizeWriteTableData(TableMetaData tableMetaData)Called after copying of a table ends.voidfinishExport()Finish exportvoidflush()Allow the implementation to flush its buffers.voidinitializeExport(ConnectorRepository connectorRepository, String connectorId, ExportDumpConnectorInfo exportDumpConnectionInfo)Start exporting to a file.voidinitializeWriteRowData(TableMetaData tableMetaData)Called before copying of a table row starts.voidinitializeWriteTableData(TableMetaData tableMetaData)Called before copying of a table starts.voidwriteDatabaseMetaData(DatabaseMetaData sourceDatabaseMetaData)Dump database informationvoidwriteObject(Object obj)voidwriteTableHeader(ExportTableHeader exportTableHeader)Write table header when executing an INSERT statement.
-
-
-
Method Detail
-
initializeExport
void initializeExport(ConnectorRepository connectorRepository, String connectorId, ExportDumpConnectorInfo exportDumpConnectionInfo) throws Exception
Start exporting to a file.- Throws:
Exception
-
writeTableHeader
void writeTableHeader(ExportTableHeader exportTableHeader) 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.- Throws:
Exception
-
writeDatabaseMetaData
void writeDatabaseMetaData(DatabaseMetaData sourceDatabaseMetaData) throws Exception
Dump database information- Throws:
Exception
-
initializeWriteTableData
void initializeWriteTableData(TableMetaData tableMetaData) throws Exception
Called before copying of a table starts.- Throws:
Exception
-
finalizeWriteTableData
void finalizeWriteTableData(TableMetaData tableMetaData) throws Exception
Called after copying of a table ends.- Throws:
Exception
-
initializeWriteRowData
void initializeWriteRowData(TableMetaData tableMetaData) throws Exception
Called before copying of a table row starts.- Throws:
Exception
-
finalizeWriteRowData
void finalizeWriteRowData(TableMetaData tableMetaData) throws Exception
Called after copying of a table row ends.- Throws:
Exception
-
flush
void flush() throws ExceptionAllow the implementation to flush its buffers. This method is called byExportDumpConnection.commit().- Throws:
Exception
-
-