Class HelperTableEnhancer
java.lang.Object
net.sf.jailer.enhancer.HelperTableEnhancer
-
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) Drops the JL_DUAL helper table at the bottom of the script if it was needed.voidaddProlog(Writer script, ScriptType scriptType, Session session, DBMS targetDBMSConfiguration, EntityGraph entityGraph, Set<Table> progress, ExecutionContext executionContext) Creates and populates the JL_DUAL helper table at the top of the script if needed.
-
Constructor Details
-
HelperTableEnhancer
public HelperTableEnhancer()
-
-
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 Drops the JL_DUAL helper table at the bottom of the script if it was needed.- 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 Creates and populates the JL_DUAL helper table at the top of the script if needed.- 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
-