| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.logicalcobwebs.dbscript.Script
class Script
Defines a set of commands to run. And which
 driver to use. And its configuration.
| 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 | 
|---|
private java.lang.String name
private java.lang.String driver
private java.lang.String url
private java.util.Properties info
private java.util.List commands
| Constructor Detail | 
|---|
Script()
| Method Detail | 
|---|
protected void addCommand(Command command)
command - to addprotected Command[] getCommands()
protected java.lang.String getName()
protected void setName(java.lang.String name)
getName()protected java.lang.String getUrl()
protected void setUrl(java.lang.String url)
getUrl()protected java.lang.String getDriver()
protected void setDriver(java.lang.String driver)
getDriver()protected java.util.Properties getInfo()
protected void addProperty(java.lang.String name,
                           java.lang.String value)
name - name of propertyvalue - value of property| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||