Class ScriptBundleExecutorImpl
java.lang.Object
org.alfresco.repo.domain.schema.script.ScriptBundleExecutorImpl
- All Implemented Interfaces:
ScriptBundleExecutor
ScriptBundleExecutor implementation. Uses the supplied ScriptExecutor to invoke multiple SQL scripts in a particular directory.- Author:
- Matt Ward, Derek Hulley
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
log
protected org.apache.commons.logging.Log log
-
-
Constructor Details
-
ScriptBundleExecutorImpl
-
-
Method Details
-
exec
Description copied from interface:ScriptBundleExecutorRuns a bundle of scripts. If any script within the bundle fails, then the rest of the files are not run.- Specified by:
execin interfaceScriptBundleExecutor- Parameters:
logOnly- true to catch and log any exceptions or false to rethrowdir- Directory where the script bundle may be found.scripts- Names of the SQL scripts to run, relative to the specified directory.
-
exec
Description copied from interface:ScriptBundleExecutorRuns a bundle of scripts. If any script within the bundle fails, then the rest of the files are not run.- Specified by:
execin interfaceScriptBundleExecutor- Parameters:
dir- Directory where the script bundle may be found.scripts- Names of the SQL scripts to run, relative to the specified directory.
-
execWithPostScript
Description copied from interface:ScriptBundleExecutorRuns a bundle of scripts. If any script within the bundle fails, then the rest of the files are not run, with the exception of postScript - which is always run (a clean-up script for example).- Specified by:
execWithPostScriptin interfaceScriptBundleExecutor- Parameters:
dir- Directory where the script bundle may be found.postScript- A script that is always run after the other scripts.scripts- Names of the SQL scripts to run, relative to the specified directory.
-