Added debug infos to CodeFormatter
[phpeclipse.git] / archive / net.sourceforge.phpeclipse.sql / src / net / sourceforge / phpdt / sql / adapters / DriverInfo.java
1 package net.sourceforge.phpdt.sql.adapters;
2
3 import java.util.Vector;
4
5 public class DriverInfo {
6         private String driverType;
7         private String displayName;
8         private Vector driverNames = new Vector();
9         private DatabaseAdapter adapter;
10         public DriverInfo(String driverType, String displayName, DatabaseAdapter adapter) {
11                 this.driverType = driverType;
12                 this.displayName = displayName;
13                 this.adapter = adapter;
14         }
15
16         public String getDriverType() {
17                 return driverType;
18         }
19
20         public void setDriverType(String driverType) {
21                 this.driverType = driverType;
22         }
23
24         public void addDriverName(String driverName) {
25                 driverNames.addElement(driverName);
26         }
27         
28         public String[] getDriverNames() {
29                 String retVal[] = new String[driverNames.size()];
30                 for (int i = 0; i < driverNames.size(); i++) {
31                         retVal[i] = (String) driverNames.elementAt(i);
32                 }
33                 return retVal;
34         }
35
36         public DatabaseAdapter getAdapter() {
37                 return adapter;
38         }
39
40         public void setAdapter(DatabaseAdapter adapter) {
41                 this.adapter = adapter;
42         }
43
44         public String getDisplayName() {
45                 return displayName;
46         }
47
48         public void setDisplayName(String displayName) {
49                 this.displayName = displayName;
50         }
51
52 }