Class UpdateTransformer

All Implemented Interfaces:
Session.ResultSetReader

public class UpdateTransformer extends Session.AbstractResultSetReader
A Session.ResultSetReader that writes the read rows as UPDATE statements into the export-script.
Author:
Ralf Wisser
  • Constructor Details

    • UpdateTransformer

      public UpdateTransformer(Table table, Set<Column> columns, OutputStreamWriter scriptFileWriter, int maxBodySize, Session session, DBMS targetDBMSConfiguration, ImportFilterTransformer importFilterTransformer, boolean inSourceSchema, String reason, ExecutionContext executionContext) throws SQLException
      Constructor.
      Parameters:
      table - the table to read from
      columns - the columns to update
      scriptFileWriter - the file to write to
      maxBodySize - maximum length of SQL values list (for generated inserts)
      session - the session
      targetDBMSConfiguration - configuration of the target DBMS
      importFilterTransformer - transforms import filters into SQL expressions
      inSourceSchema - if true, use source-schema-mapping, else use schema-mapping
      reason - to be written as comment
      executionContext - the execution context
      Throws:
      SQLException
  • Method Details