public abstract class ImportFilterManager extends java.lang.Object implements ImportFilterTransformer
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
MAPPINGTABLE_NAME_PREFIX |
| Constructor and Description |
|---|
ImportFilterManager(Session localSession,
java.io.OutputStreamWriter result,
java.util.Set<Table> progress,
Quoting targetQuoting,
ExecutionContext executionContext)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
createMappingTables(DBMS configuration,
java.io.OutputStreamWriter result)
Creates the DDL for the mapping tables.
|
void |
dropMappingTables(java.io.OutputStreamWriter result)
Creates the DROP-statements for the mapping tables.
|
void |
fillAndWriteMappingTables(EntityGraph entityGraph,
JobManager jobManager,
java.io.OutputStreamWriter dmlResultWriter,
int numberOfEntities,
Session targetSession,
DBMS targetDBMSConfiguration)
Insert the values of columns with non-derived-import-filters into the local database.
|
void |
shutDown() |
protected abstract void |
sync(java.io.OutputStreamWriter result) |
java.lang.String |
transform(Column column,
java.lang.String oldValue)
Transforms columns with import-
Filters into SQL-expressions. |
public ImportFilterManager(Session localSession, java.io.OutputStreamWriter result, java.util.Set<Table> progress, Quoting targetQuoting, ExecutionContext executionContext) throws java.io.FileNotFoundException, java.sql.SQLException
result - to write results intotargetQuoting - java.io.FileNotFoundExceptionjava.sql.SQLExceptionpublic void createMappingTables(DBMS configuration, java.io.OutputStreamWriter result) throws java.io.IOException, java.sql.SQLException
java.io.IOExceptionjava.sql.SQLExceptionpublic void dropMappingTables(java.io.OutputStreamWriter result)
throws java.io.IOException,
java.sql.SQLException
java.io.IOExceptionjava.sql.SQLExceptionprotected abstract void sync(java.io.OutputStreamWriter result)
throws java.io.IOException
java.io.IOExceptionpublic void shutDown()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void fillAndWriteMappingTables(EntityGraph entityGraph, JobManager jobManager, java.io.OutputStreamWriter dmlResultWriter, int numberOfEntities, Session targetSession, DBMS targetDBMSConfiguration) throws CancellationException, java.sql.SQLException
entityGraph - jobManager - dmlResultWriter - CancellationExceptionjava.sql.SQLExceptionpublic java.lang.String transform(Column column, java.lang.String oldValue)
ImportFilterTransformerFilters into SQL-expressions.transform in interface ImportFilterTransformer