📄 dbconstants.java
字号:
package value;
/**
*
* <p>标题:DBConstants</p>
* <p>描述:存储数据库连接字符信息的常量类</p>
* <p>作者@author:李涛</p>
* <p>公司:com.thinkbank.04024</p>
* <p>版权:Copyrigth (c) 2005 </p>
* <p>编写日期:2005-10-10</p>
* <p>版本号@version 1.0.06.01
*
*
* TODO
*/
public class DBConstants {
/**
* SQL Server 常量
*/
public static final String STR_SQL_DRVER ="com.microsoft.jdbc.sqlserver.SQLServerDriver";
public static final String STR_SQL_URL ="jdbc:microsoft:sqlserver://localhost:1433;databasename=student";
public static final String STR_SQL_UNAME = "sa";
public static final String STR_SQL_UPWD = "sa";
/**
* Oracle 常量
*/
public static final String STR_ORCL_DRVER =
"oracle.jdbc.driver.OracleDriver";
public static final String STR_ORCL_URL =
"jdbc:oracle:thin:@localhost:1521:tb";
public static final String STR_ORCL_UNAME = "scott";
public static final String STR_ORCL_UPWD = "tiger";
/**
* jdbc-odbc-briage
*/
public static final String STR_ACC_DRVER = "sun.jdbc.odbc.JdbcOdbcDriver";
public static final String STR_ACC_URL = "jdbc:odbc:test";
public static final String STR_ACC_UNAME = "sa";
public static final String STR_ACC_UPWD = "sa";
public static String strMod = null;
/**
* public constructor
*/
public DBConstants() {
super();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -