org.logicalcobwebs.dbscript
Class ScriptFacade
java.lang.Object
org.logicalcobwebs.dbscript.ScriptFacade
public class ScriptFacade
- extends java.lang.Object
Allows you to run scripts from file.
- Since:
- Proxool 0.5
- Version:
- $Revision: 1.11 $, $Date: 2003/03/03 11:12:03 $
- Author:
- Bill Horsman (bill@logicalcobwebs.co.uk), $Author: billhorsman $ (current maintainer)
Field Summary |
private static Log |
LOG
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOG
private static final Log LOG
ScriptFacade
public ScriptFacade()
runScript
public static void runScript(java.lang.String scriptLocation,
ConnectionAdapterIF adapter)
- Run the script using the appropriate handler
- Parameters:
scriptLocation
- the path to the file that contains the script XMLadapter
- so we know where to get connections
from.
runScript
public static void runScript(java.lang.String scriptLocation,
ConnectionAdapterIF adapter,
CommandFilterIF commandFilter)
- Run the script using the appropriate handler
- Parameters:
scriptLocation
- the path to the file that contains the script XMLadapter
- so we know where to get connections
from.commandFilter
- allows you to filter which commands get run and do things to the Connection