public class ScriptBundleExecutorImpl extends Object implements ScriptBundleExecutor
ScriptBundleExecutor
implementation. Uses the supplied ScriptExecutor
to invoke multiple SQL scripts in a particular directory.Modifier and Type | Field and Description |
---|---|
protected org.apache.commons.logging.Log |
log |
Constructor and Description |
---|
ScriptBundleExecutorImpl(ScriptExecutor scriptExecutor) |
Modifier and Type | Method and Description |
---|---|
void |
exec(boolean logOnly,
String dir,
String... scripts)
Runs a bundle of scripts.
|
void |
exec(String dir,
String... scripts)
Runs a bundle of scripts.
|
void |
execWithPostScript(String dir,
String postScript,
String... scripts)
Runs a bundle of scripts.
|
public ScriptBundleExecutorImpl(ScriptExecutor scriptExecutor)
public void exec(boolean logOnly, String dir, String... scripts)
ScriptBundleExecutor
exec
in interface ScriptBundleExecutor
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.public void exec(String dir, String... scripts)
ScriptBundleExecutor
exec
in interface ScriptBundleExecutor
dir
- Directory where the script bundle may be found.scripts
- Names of the SQL scripts to run, relative to the specified directory.public void execWithPostScript(String dir, String postScript, String... scripts)
ScriptBundleExecutor
execWithPostScript
in interface ScriptBundleExecutor
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.Copyright © 2005–2017 Alfresco Software. All rights reserved.