pizzasystemconstants.java~
来自「hibernate for ORM, suit for hsql/mysql/o」· JAVA~ 代码 · 共 25 行
JAVA~
25 行
package cs636.pizza.config;
// These constants would usually be specified in a "properties file", but
// we are keeping things simple here--
public class PizzaSystemConstants {
// 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 = "weblab.lab028.cs.umb.edu";
// if not known to DNS--
public static final String MYSQL_SERVER_HOST = "158.121.106.100";
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:mem:";
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?