public class HelperTableEnhancer extends java.lang.Object implements ScriptEnhancer
Constructor and Description |
---|
HelperTableEnhancer() |
Modifier and Type | Method and Description |
---|---|
void |
addComments(java.io.Writer script,
ScriptType scriptType,
Session session,
DBMS targetDBMSConfiguration,
EntityGraph entityGraph,
java.util.Set<Table> progress,
ExecutionContext executionContext)
Adds comments to the script.
|
void |
addEpilog(java.io.Writer script,
ScriptType scriptType,
Session session,
DBMS targetDBMSConfiguration,
EntityGraph entityGraph,
java.util.Set<Table> progress,
ExecutionContext executionContext)
Adds comments at bottom of the script.
|
void |
addProlog(java.io.Writer script,
ScriptType scriptType,
Session session,
DBMS targetDBMSConfiguration,
EntityGraph entityGraph,
java.util.Set<Table> progress,
ExecutionContext executionContext)
Adds statements at top of the script.
|
public void addComments(java.io.Writer script, ScriptType scriptType, Session session, DBMS targetDBMSConfiguration, EntityGraph entityGraph, java.util.Set<Table> progress, ExecutionContext executionContext) throws java.io.IOException, java.sql.SQLException
ScriptEnhancer
addComments
in interface ScriptEnhancer
script
- to write into the scriptscriptType
- the type of the scriptsession
- for executing SQL-statements in the source-DBtargetDBMSConfiguration
- configuration of the target DBMSprogress
- the export progressjava.io.IOException
java.sql.SQLException
public void addEpilog(java.io.Writer script, ScriptType scriptType, Session session, DBMS targetDBMSConfiguration, EntityGraph entityGraph, java.util.Set<Table> progress, ExecutionContext executionContext) throws java.io.IOException, java.sql.SQLException
ScriptEnhancer
addEpilog
in interface ScriptEnhancer
script
- to write into the scriptscriptType
- the type of the scriptsession
- for executing SQL-statements in the source-DBtargetDBMSConfiguration
- configuration of the target DBMSprogress
- the export progressjava.io.IOException
java.sql.SQLException
public void addProlog(java.io.Writer script, ScriptType scriptType, Session session, DBMS targetDBMSConfiguration, EntityGraph entityGraph, java.util.Set<Table> progress, ExecutionContext executionContext) throws java.io.IOException, java.sql.SQLException
ScriptEnhancer
addProlog
in interface ScriptEnhancer
script
- to write into the scriptscriptType
- the type of the scriptsession
- for executing SQL-statements in the source-DBtargetDBMSConfiguration
- configuration of the target DBMSprogress
- the export progressjava.io.IOException
java.sql.SQLException