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 gzippedObjectOutputStreamfile 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 voidfinalizeWriteRowData(TableMetaData table)Called after copying of a table row ends.voidfinalizeWriteTableData(TableMetaData table)Called after copying of a table ends.voidfinishExport()Finish exportvoidflush()Resets the output stream which reduces memory foot print drastically.voidinitializeExport(ConnectorRepository connectorRepository, String connectorId, ExportDumpConnectorInfo exportDumpConnectionInfo)Start exporting to a file.voidinitializeWriteRowData(TableMetaData table)Called before copying of a table row starts.voidinitializeWriteTableData(TableMetaData table)Called before copying of a table starts.voidwriteDatabaseMetaData(DatabaseMetaData databaseMetaData)Dump database informationvoidwriteObject(Object obj)voidwriteTableHeader(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:
initializeExportin interfaceExporter- Throws:
Exception
-
finishExport
public void finishExport() throws ExceptionFinish export- Specified by:
finishExportin interfaceExporter- Throws:
Exception
-
writeTableHeader
public void writeTableHeader(ExportTableHeader exportTableHeader) throws IOException
Description copied from interface:ExporterWrite 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:
writeTableHeaderin interfaceExporter- Throws:
IOException
-
writeDatabaseMetaData
public void writeDatabaseMetaData(DatabaseMetaData databaseMetaData) throws IOException
Description copied from interface:ExporterDump database information- Specified by:
writeDatabaseMetaDatain interfaceExporter- Throws:
IOException
-
initializeWriteTableData
public void initializeWriteTableData(TableMetaData table)
Description copied from interface:ExporterCalled before copying of a table starts.- Specified by:
initializeWriteTableDatain interfaceExporter
-
finalizeWriteTableData
public void finalizeWriteTableData(TableMetaData table)
Description copied from interface:ExporterCalled after copying of a table ends.- Specified by:
finalizeWriteTableDatain interfaceExporter
-
initializeWriteRowData
public void initializeWriteRowData(TableMetaData table)
Description copied from interface:ExporterCalled before copying of a table row starts.- Specified by:
initializeWriteRowDatain interfaceExporter
-
finalizeWriteRowData
public void finalizeWriteRowData(TableMetaData table)
Description copied from interface:ExporterCalled after copying of a table row ends.- Specified by:
finalizeWriteRowDatain interfaceExporter
-
flush
public void flush() throws IOExceptionResets the output stream which reduces memory foot print drastically. SeeObjectOutputStream.reset()for details.- Specified by:
flushin interfaceExporter- Throws:
IOException
-
writeObject
public void writeObject(Object obj) throws IOException
- Specified by:
writeObjectin interfaceExporter- Throws:
IOException
-
-