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-
Filter s 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.FileNotFoundException
java.sql.SQLException
public void createMappingTables(DBMS configuration, java.io.OutputStreamWriter result) throws java.io.IOException, java.sql.SQLException
java.io.IOException
java.sql.SQLException
public void dropMappingTables(java.io.OutputStreamWriter result) throws java.io.IOException, java.sql.SQLException
java.io.IOException
java.sql.SQLException
protected abstract void sync(java.io.OutputStreamWriter result) throws java.io.IOException
java.io.IOException
public void shutDown() throws java.sql.SQLException
java.sql.SQLException
public void fillAndWriteMappingTables(EntityGraph entityGraph, JobManager jobManager, java.io.OutputStreamWriter dmlResultWriter, int numberOfEntities, Session targetSession, DBMS targetDBMSConfiguration) throws CancellationException, java.sql.SQLException
entityGraph
- jobManager
- dmlResultWriter
- CancellationException
java.sql.SQLException
public java.lang.String transform(Column column, java.lang.String oldValue)
ImportFilterTransformer
Filter
s into SQL-expressions.transform
in interface ImportFilterTransformer