1 6 package org.logicalcobwebs.dbscript; 7 8 import java.util.List ; 9 import java.util.Properties ; 10 import java.util.Vector ; 11 12 21 class Script { 22 23 private String name; 24 25 private String driver; 26 27 private String url; 28 29 private Properties info = new Properties (); 30 31 private List commands = new Vector (); 32 33 37 protected void addCommand(Command command) { 38 commands.add(command); 39 } 40 41 45 protected Command[] getCommands() { 46 return (Command[]) commands.toArray(new Command[commands.size()]); 47 } 48 49 53 protected String getName() { 54 return name; 55 } 56 57 60 protected void setName(String name) { 61 this.name = name; 62 } 63 64 67 protected String getUrl() { 68 return url; 69 } 70 71 74 protected void setUrl(String url) { 75 this.url = url; 76 } 77 78 82 protected String getDriver() { 83 return driver; 84 } 85 86 89 protected void setDriver(String driver) { 90 this.driver = driver; 91 } 92 93 97 protected Properties getInfo() { 98 return info; 99 } 100 101 106 protected void addProperty(String name, String value) { 107 info.setProperty(name, value); 108 } 109 110 } 111 112 135 | Popular Tags |