?? driver.java
字號(hào):
/*
* Created on 2003-5-6
*
*/
package com.tanghan.db.util;
/**
* the struct of a JDBC Driver
* @author Jerry Tang
* @version v0.1.0
* @copyright (C) 2003 Tanghan Studio
*
*/
public class Driver implements Cloneable{
/**the name of JDBC Driver*/
private String driverName = "";
/**the url prefix of a jdbc connection by the JDBC driver*/
private String URLPrefix = "";
/**the driver class of the jdbc driver*/
private String driverClass = "";
/**jar file*/
private String jarFileName = "";
/*if the driver is actived*/
private boolean active = false;
/**
* constructor
*/
public Driver() {
super();
}
/** constructor
* @param name the name of JDBC Driver
* @param URLPrefix the url prefix of a jdbc connection by the JDBC driver
* @param driverClass the driver class of the jdbc driver
*/
public Driver(String name,String URLPrefix,String driverClass,String jarFileName){
this(name, URLPrefix,driverClass,jarFileName, false);
}
/** constructor
* @param name the name of JDBC Driver
* @param URLPrefix the url prefix of a jdbc connection by the JDBC driver
* @param driverClass the driver class of the jdbc driver
*/
public Driver(String name,String URLPrefix,String driverClass,String jarFileName,boolean active){
this.driverName = name;
this.URLPrefix = URLPrefix;
this.driverClass = driverClass;
this.active = active;
this.jarFileName = jarFileName;
}
/**
* @return
*/
public String getDriverClass() {
return driverClass;
}
/**
* @return
*/
public String getDriverName() {
return driverName;
}
/**
* @return
*/
public String getURLPrefix() {
return URLPrefix;
}
/**
* @param string
*/
public void setDriverClass(String string) {
driverClass = string;
}
/**
* @param string
*/
public void setDriverName(String string) {
driverName = string;
}
/**
* @param string
*/
public void setURLPrefix(String string) {
URLPrefix = string;
}
/**
* @return
*/
public boolean isActive() {
return active;
}
/**
* @param b
*/
public void setActive(boolean b) {
active = b;
}
/**
* @return
*/
public String getJarFileName() {
return jarFileName;
}
/**
* @param string
*/
public void setJarFileName(String string) {
jarFileName = string;
}
/* (non-Javadoc)
* @see java.lang.Object#clone()
*/
public Object clone(){
// TO_DO Auto-generated method stub
Driver driver = new Driver( driverName, URLPrefix,driverClass, jarFileName, active);
return driver;
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -