1 package net.sourceforge.phpdt.sql.adapters;
3 import java.util.Vector;
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;
16 public String getDriverType() {
20 public void setDriverType(String driverType) {
21 this.driverType = driverType;
24 public void addDriverName(String driverName) {
25 driverNames.addElement(driverName);
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);
36 public DatabaseAdapter getAdapter() {
40 public void setAdapter(DatabaseAdapter adapter) {
41 this.adapter = adapter;
44 public String getDisplayName() {
48 public void setDisplayName(String displayName) {
49 this.displayName = displayName;