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)
ScriptBundleExecutorexec in interface ScriptBundleExecutorlogOnly - 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)
ScriptBundleExecutorexec in interface ScriptBundleExecutordir - 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)
ScriptBundleExecutorexecWithPostScript in interface ScriptBundleExecutordir - 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–2018 Alfresco Software. All rights reserved.