Package net.sf.basedb.core.migrate
Interface ResultWriterFactory
- All Known Implementing Classes:
PostgresResultWriterFactory
public interface ResultWriterFactory
Interface for factories that knows how to create result writers.
Implementations typically need to be able to format the exported
values so that a specific target database knows how to import them.
- Since:
- 3.1
- Author:
- nicklas
- See Also:
- Last modified
- $Date$
-
Method Summary
Modifier and TypeMethodDescriptioncreate
(ResultSet rs, int index, Writer writer, TableInfo.ColumnInfo column) Create a new result writer.
-
Method Details
-
create
Create a new result writer.- Parameters:
rs
- The result set that data should be taken fromindex
- The column index that the writer should read date fromwriter
- The writer to write the formatted output tocolumn
- More information about the column that the writer should read from- Returns:
- A result writer implementation
- Throws:
BaseException
- If the factory don't know how to create a writer for the given column
-