org.logicalcobwebs.dbscript
Class ScriptFacade

java.lang.Object
  extended by 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
           
 
Constructor Summary
ScriptFacade()
           
 
Method Summary
static void runScript(java.lang.String scriptLocation, ConnectionAdapterIF adapter)
          Run the script using the appropriate handler
static void runScript(java.lang.String scriptLocation, ConnectionAdapterIF adapter, CommandFilterIF commandFilter)
          Run the script using the appropriate handler
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

private static final Log LOG
Constructor Detail

ScriptFacade

public ScriptFacade()
Method Detail

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 XML
adapter - 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 XML
adapter - so we know where to get connections from.
commandFilter - allows you to filter which commands get run and do things to the Connection