Class FileBasedScriptEnhancer
java.lang.Object
net.sf.jailer.enhancer.FileBasedScriptEnhancer
- All Implemented Interfaces:
ScriptEnhancer
Inserts the content of the files
prolog/[INSERT|DELETE]/<TABLE>.sqlepilog/[INSERT|DELETE]/<TABLE>.sql
- Author:
- Ralf Wisser
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddComments(Writer script, ScriptType scriptType, Session session, DBMS targetDBMSConfiguration, EntityGraph entityGraph, Set<Table> progress, ExecutionContext executionContext) Adds nothing.voidaddEpilog(Writer script, ScriptType scriptType, Session session, DBMS targetDBMSConfiguration, EntityGraph entityGraph, Set<Table> progress, ExecutionContext executionContext) Adds epilogs.voidaddProlog(Writer script, ScriptType scriptType, Session session, DBMS targetDBMSConfiguration, EntityGraph entityGraph, Set<Table> progress, ExecutionContext executionContext) Adds prologs.
-
Constructor Details
-
FileBasedScriptEnhancer
public FileBasedScriptEnhancer()
-
-
Method Details
-
addComments
public void addComments(Writer script, ScriptType scriptType, Session session, DBMS targetDBMSConfiguration, EntityGraph entityGraph, Set<Table> progress, ExecutionContext executionContext) throws IOException, SQLException Adds nothing.- Specified by:
addCommentsin interfaceScriptEnhancer- 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
public void addEpilog(Writer script, ScriptType scriptType, Session session, DBMS targetDBMSConfiguration, EntityGraph entityGraph, Set<Table> progress, ExecutionContext executionContext) throws IOException, SQLException Adds epilogs.- Specified by:
addEpilogin interfaceScriptEnhancer- 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
public void addProlog(Writer script, ScriptType scriptType, Session session, DBMS targetDBMSConfiguration, EntityGraph entityGraph, Set<Table> progress, ExecutionContext executionContext) throws IOException, SQLException Adds prologs.- Specified by:
addPrologin interfaceScriptEnhancer- 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
-