public abstract class ImportFilterManager extends Object implements ImportFilterTransformer
| Modifier and Type | Field and Description |
|---|---|
static String |
MAPPINGTABLE_NAME_PREFIX |
| Constructor and Description |
|---|
ImportFilterManager(Session localSession,
OutputStreamWriter result,
Set<Table> progress,
Quoting targetQuoting,
ExecutionContext executionContext)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
createMappingTables(DBMS configuration,
OutputStreamWriter result)
Creates the DDL for the mapping tables.
|
void |
dropMappingTables(OutputStreamWriter result)
Creates the DROP-statements for the mapping tables.
|
void |
fillAndWriteMappingTables(EntityGraph entityGraph,
JobManager jobManager,
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(OutputStreamWriter result) |
String |
transform(Column column,
String oldValue)
Transforms columns with import-
Filters into SQL-expressions. |
public static String MAPPINGTABLE_NAME_PREFIX
public ImportFilterManager(Session localSession, OutputStreamWriter result, Set<Table> progress, Quoting targetQuoting, ExecutionContext executionContext) throws FileNotFoundException, SQLException
result - to write results intotargetQuoting - FileNotFoundExceptionSQLExceptionpublic void createMappingTables(DBMS configuration, OutputStreamWriter result) throws IOException, SQLException
IOExceptionSQLExceptionpublic void dropMappingTables(OutputStreamWriter result) throws IOException, SQLException
IOExceptionSQLExceptionprotected abstract void sync(OutputStreamWriter result) throws IOException
IOExceptionpublic void shutDown()
throws SQLException
SQLExceptionpublic void fillAndWriteMappingTables(EntityGraph entityGraph, JobManager jobManager, OutputStreamWriter dmlResultWriter, int numberOfEntities, Session targetSession, DBMS targetDBMSConfiguration) throws CancellationException, SQLException
entityGraph - jobManager - dmlResultWriter - CancellationExceptionSQLExceptionpublic String transform(Column column, String oldValue)
ImportFilterTransformerFilters into SQL-expressions.transform in interface ImportFilterTransformer