techconfsystemconstants.java
来自「hibernate for ORM, suit for hsql/mysql/o」· Java 代码 · 共 29 行
JAVA
29 行
package cs636.techconf.config;
// These constants would usually be specified in a "properties file", but
// we are keeping things simple here--
public class TechconfSystemConstants {
// for ease of testing, handle only a few rooms--
public static final int NUM_OF_ROOMS = 10;
public static final String MYSQL_DRIVER = "com.mysql.jdbc.Driver";
public static final String MYSQL_CONN_STR_PREFIX = "jdbc:mysql://";
public static final int MYSQL_SERVER_PORT_NUM = 3306;
public static final String MYSQL_SERVER_HOST = "fantasyland.cs.umb.edu";
// for local MySQL installation--
//public static final String MYSQL_SERVER_HOST = "localhost";
// if the hostname fantasyland is not known to DNS--
// from outside UMB this is its IP address
// public static final String MYSQL_SERVER_HOST = "158.121.104.84";
public static final String ORACLE_DRIVER = "oracle.jdbc.OracleDriver";
public static final String ORACLE_CONN_STR_PREFIX = "jdbc:oracle:thin:@";
public static final int ORACLE_SERVER_PORT_NUM = 1521;
public static final String ORACLE_SERVER_HOST = "dbs2.cs.umb.edu";
public static final String ORACLE_SERVER_SID ="dbs2";
public static final String HSQLDB_DRIVER = "org.hsqldb.jdbcDriver";
public static final String HSQLDB_CONN_STR_PREFIX = "jdbc:hsqldb:hsql://localhost/";
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?