org.logicalcobwebs.dbscript
Class Script

java.lang.Object
  extended by org.logicalcobwebs.dbscript.Script

 class Script
extends java.lang.Object

Defines a set of commands to run. And which driver to use. And its configuration.

Since:
Proxool 0.5
Version:
$Revision: 1.6 $, $Date: 2003/03/03 11:12:03 $
Author:
Bill Horsman (bill@logicalcobwebs.co.uk), $Author: billhorsman $ (current maintainer)

Field Summary
private  java.util.List commands
           
private  java.lang.String driver
           
private  java.util.Properties info
           
private  java.lang.String name
           
private  java.lang.String url
           
 
Constructor Summary
Script()
           
 
Method Summary
protected  void addCommand(Command command)
          Add a command to the script.
protected  void addProperty(java.lang.String name, java.lang.String value)
          Add a new property
protected  Command[] getCommands()
          Get all the commands, in the order in which they were added
protected  java.lang.String getDriver()
          The driver to use
protected  java.util.Properties getInfo()
          Configuration of the Driver
protected  java.lang.String getName()
          So we can recognise this script in the logs
protected  java.lang.String getUrl()
          The URL to pass to the Driver
protected  void setDriver(java.lang.String driver)
           
protected  void setName(java.lang.String name)
           
protected  void setUrl(java.lang.String url)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

private java.lang.String name

driver

private java.lang.String driver

url

private java.lang.String url

info

private java.util.Properties info

commands

private java.util.List commands
Constructor Detail

Script

Script()
Method Detail

addCommand

protected void addCommand(Command command)
Add a command to the script.

Parameters:
command - to add

getCommands

protected Command[] getCommands()
Get all the commands, in the order in which they were added

Returns:
list of commands

getName

protected java.lang.String getName()
So we can recognise this script in the logs

Returns:
name

setName

protected void setName(java.lang.String name)
See Also:
getName()

getUrl

protected java.lang.String getUrl()
The URL to pass to the Driver


setUrl

protected void setUrl(java.lang.String url)
See Also:
getUrl()

getDriver

protected java.lang.String getDriver()
The driver to use

Returns:
the driver

setDriver

protected void setDriver(java.lang.String driver)
See Also:
getDriver()

getInfo

protected java.util.Properties getInfo()
Configuration of the Driver

Returns:
properties

addProperty

protected void addProperty(java.lang.String name,
                           java.lang.String value)
Add a new property

Parameters:
name - name of property
value - value of property