1 package net.sourceforge.phpdt.sql.bookmarks;
6 * To change this generated comment edit the template variable "typecomment":
7 * Window>Preferences>Java>Templates.
8 * To enable and disable the creation of type comments go to
9 * Window>Preferences>Java>Code Generation.
11 public class Bookmark {
18 String driverFile = "";
24 public Bookmark(Bookmark data) {
25 setName(data.getName());
26 setUsername(data.getUsername());
27 setPassword(data.getPassword());
28 setConnect(data.getConnect());
29 setDriver(data.getDriver());
30 setType(data.getType());
31 setDriverFile(data.getDriverFile());
43 this.username = username;
44 this.password = password;
45 this.connect = connect;
48 this.driverFile = driverFile;
52 * Returns the connect.
55 public String getConnect() {
63 public String getDriver() {
68 * Returns the driverFile.
71 public String getDriverFile() {
76 * Returns the password.
79 public String getPassword() {
84 * Returns the username.
87 public String getUsername() {
93 * @param connect The connect to set
95 public void setConnect(String connect) {
96 if (connect == null) {
99 this.connect = connect;
104 * @param driver The driver to set
106 public void setDriver(String driver) {
107 if (driver == null) {
110 this.driver = driver;
114 * Sets the driverFile.
115 * @param driverFile The driverFile to set
117 public void setDriverFile(String driverFile) {
118 if (driverFile == null) {
121 this.driverFile = driverFile;
126 * @param password The password to set
128 public void setPassword(String password) {
129 if (password == null) {
132 this.password = password;
137 * @param username The username to set
139 public void setUsername(String username) {
140 if (username == null) {
143 this.username = username;
150 public String getName() {
156 * @param name The name to set
158 public void setName(String name) {
165 public boolean isEmpty() {
166 if (name.equals("") &&
167 username.equals("") &&
168 password.equals("") &&
169 connect.equals("") &&
172 driverFile.equals("")) {
177 public String toString() {
178 StringBuffer buffer = new StringBuffer();
180 buffer.append("name=");
183 buffer.append("username=");
184 buffer.append(username);
186 buffer.append("password=****");
188 buffer.append("connect=");
189 buffer.append(connect);
191 buffer.append("driver=");
192 buffer.append(driver);
194 buffer.append("type=");
197 buffer.append("driverFile=");
198 buffer.append(driverFile);
200 return buffer.toString();
203 public String getType() {
207 public void setType(String type) {
211 public String getSchema() {
215 public void setSchema(String schema) {
216 this.schema = schema;