Interface Exporter
-
- All Known Implementing Classes:
PlainGzipExporter
,ZipExporter
public interface Exporter
Export 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 void
finalizeWriteRowData(TableMetaData tableMetaData)
Called after copying of a table row ends.void
finalizeWriteTableData(TableMetaData tableMetaData)
Called after copying of a table ends.void
finishExport()
Finish exportvoid
flush()
Allow the implementation to flush its buffers.void
initializeExport(ConnectorRepository connectorRepository, String connectorId, ExportDumpConnectorInfo exportDumpConnectionInfo)
Start exporting to a file.void
initializeWriteRowData(TableMetaData tableMetaData)
Called before copying of a table row starts.void
initializeWriteTableData(TableMetaData tableMetaData)
Called before copying of a table starts.void
writeDatabaseMetaData(DatabaseMetaData sourceDatabaseMetaData)
Dump database informationvoid
writeObject(Object obj)
void
writeTableHeader(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 Exception
Allow the implementation to flush its buffers. This method is called byExportDumpConnection.commit()
.- Throws:
Exception
-
-