public static class DMLTransformer.Factory extends java.lang.Object implements TransformerFactory
Constructor and Description |
---|
Factory(java.io.OutputStreamWriter scriptFileWriter,
boolean upsertOnly,
int maxBodySize,
Session session,
DBMS targetDBMSConfiguration,
ExecutionContext executionContext)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Session.ResultSetReader |
create(Table table)
Creates transformer (as
Session.ResultSetReader which
transforms rows of a given table into an external representation. |
void |
setImportFilterTransformer(ImportFilterTransformer importFilterManager)
Sets the
ImportFilterTransformer . |
public Factory(java.io.OutputStreamWriter scriptFileWriter, boolean upsertOnly, int maxBodySize, Session session, DBMS targetDBMSConfiguration, ExecutionContext executionContext)
scriptFileWriter
- the file to write tomaxBodySize
- maximum length of SQL values list (for generated inserts)upsertOnly
- use 'upsert' statements for all entitiespublic Session.ResultSetReader create(Table table) throws java.sql.SQLException
Session.ResultSetReader
which
transforms rows of a given table into an external representation.create
in interface TransformerFactory
table
- the tablejava.sql.SQLException
public void setImportFilterTransformer(ImportFilterTransformer importFilterManager)
ImportFilterTransformer
.