public class FileBasedScriptEnhancer extends java.lang.Object implements ScriptEnhancer
prolog/[INSERT|DELETE]/<TABLE>.sql
epilog/[INSERT|DELETE]/<TABLE>.sql
Constructor and Description |
---|
FileBasedScriptEnhancer() |
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 nothing.
|
void |
addEpilog(java.io.Writer script,
ScriptType scriptType,
Session session,
DBMS targetDBMSConfiguration,
EntityGraph entityGraph,
java.util.Set<Table> progress,
ExecutionContext executionContext)
Adds epilogs.
|
void |
addProlog(java.io.Writer script,
ScriptType scriptType,
Session session,
DBMS targetDBMSConfiguration,
EntityGraph entityGraph,
java.util.Set<Table> progress,
ExecutionContext executionContext)
Adds prologs.
|
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
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
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
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