Class PlainGzipExporter
- java.lang.Object
-
- de.akquinet.jbosscc.guttenbase.export.plain.PlainGzipExporter
-
- All Implemented Interfaces:
Exporter
public class PlainGzipExporter extends Object implements Exporter
Export schema information and data into gzippedObjectOutputStream
file with serialized data.© 2012-2034 akquinet tech@spree
- Author:
- M. Dahm
-
-
Constructor Summary
Constructors Constructor Description PlainGzipExporter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
finalizeWriteRowData(TableMetaData table)
Called after copying of a table row ends.void
finalizeWriteTableData(TableMetaData table)
Called after copying of a table ends.void
finishExport()
Finish exportvoid
flush()
Resets the output stream which reduces memory foot print drastically.void
initializeExport(ConnectorRepository connectorRepository, String connectorId, ExportDumpConnectorInfo exportDumpConnectionInfo)
Start exporting to a file.void
initializeWriteRowData(TableMetaData table)
Called before copying of a table row starts.void
initializeWriteTableData(TableMetaData table)
Called before copying of a table starts.void
writeDatabaseMetaData(DatabaseMetaData databaseMetaData)
Dump database informationvoid
writeObject(Object obj)
void
writeTableHeader(ExportTableHeader exportTableHeader)
Write table header when executing an INSERT statement.
-
-
-
Method Detail
-
initializeExport
public void initializeExport(ConnectorRepository connectorRepository, String connectorId, ExportDumpConnectorInfo exportDumpConnectionInfo) throws Exception
Start exporting to a file.- Specified by:
initializeExport
in interfaceExporter
- Throws:
Exception
-
finishExport
public void finishExport() throws Exception
Finish export- Specified by:
finishExport
in interfaceExporter
- Throws:
Exception
-
writeTableHeader
public void writeTableHeader(ExportTableHeader exportTableHeader) throws IOException
Description copied from interface:Exporter
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.- Specified by:
writeTableHeader
in interfaceExporter
- Throws:
IOException
-
writeDatabaseMetaData
public void writeDatabaseMetaData(DatabaseMetaData databaseMetaData) throws IOException
Description copied from interface:Exporter
Dump database information- Specified by:
writeDatabaseMetaData
in interfaceExporter
- Throws:
IOException
-
initializeWriteTableData
public void initializeWriteTableData(TableMetaData table)
Description copied from interface:Exporter
Called before copying of a table starts.- Specified by:
initializeWriteTableData
in interfaceExporter
-
finalizeWriteTableData
public void finalizeWriteTableData(TableMetaData table)
Description copied from interface:Exporter
Called after copying of a table ends.- Specified by:
finalizeWriteTableData
in interfaceExporter
-
initializeWriteRowData
public void initializeWriteRowData(TableMetaData table)
Description copied from interface:Exporter
Called before copying of a table row starts.- Specified by:
initializeWriteRowData
in interfaceExporter
-
finalizeWriteRowData
public void finalizeWriteRowData(TableMetaData table)
Description copied from interface:Exporter
Called after copying of a table row ends.- Specified by:
finalizeWriteRowData
in interfaceExporter
-
flush
public void flush() throws IOException
Resets the output stream which reduces memory foot print drastically. SeeObjectOutputStream.reset()
for details.- Specified by:
flush
in interfaceExporter
- Throws:
IOException
-
writeObject
public void writeObject(Object obj) throws IOException
- Specified by:
writeObject
in interfaceExporter
- Throws:
IOException
-
-