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:
    ResultWriter
    Last modified
    $Date$
    • Method Detail

      • create

        ResultWriter create​(ResultSet rs,
                            int index,
                            Writer writer,
                            TableInfo.ColumnInfo column)
        Create a new result writer.
        Parameters:
        rs - The result set that data should be taken from
        index - The column index that the writer should read date from
        writer - The writer to write the formatted output to
        column - 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