Interface ScriptEnhancer
- All Known Implementing Classes:
FileBasedScriptEnhancer,HelperTableEnhancer
public interface ScriptEnhancer
Enhances the generated SQL-export-script with statements or comments.
- Author:
- Ralf Wisser
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddComments(Writer script, ScriptType scriptType, Session session, DBMS targetDBMSConfiguration, EntityGraph entityGraph, Set<Table> progress, ExecutionContext executionContext) Adds comments to the script.voidaddEpilog(Writer script, ScriptType scriptType, Session session, DBMS targetDBMSConfiguration, EntityGraph entityGraph, Set<Table> progress, ExecutionContext executionContext) Adds statements at bottom of the script.voidaddProlog(Writer script, ScriptType scriptType, Session session, DBMS targetDBMSConfiguration, EntityGraph entityGraph, Set<Table> progress, ExecutionContext executionContext) Adds statements at top of the script.
-
Method Details
-
addComments
void addComments(Writer script, ScriptType scriptType, Session session, DBMS targetDBMSConfiguration, EntityGraph entityGraph, Set<Table> progress, ExecutionContext executionContext) throws IOException, SQLException Adds comments to the script.- Parameters:
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 progress- Throws:
IOExceptionSQLException
-
addProlog
void addProlog(Writer script, ScriptType scriptType, Session session, DBMS targetDBMSConfiguration, EntityGraph entityGraph, Set<Table> progress, ExecutionContext executionContext) throws IOException, SQLException Adds statements at top of the script.- Parameters:
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 progress- Throws:
IOExceptionSQLException
-
addEpilog
void addEpilog(Writer script, ScriptType scriptType, Session session, DBMS targetDBMSConfiguration, EntityGraph entityGraph, Set<Table> progress, ExecutionContext executionContext) throws IOException, SQLException Adds statements at bottom of the script.- Parameters:
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 progress- Throws:
IOExceptionSQLException
-