📄 driver.java
字号:
/* * 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; }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -