📄 daofactory.java
字号:
package com.chinamobile.dao;
public abstract class DAOFactory
{
public static final int ORACLE = 1;
public static final int SQLSERVER = 2;
public static final int MYSQL = 3;
public abstract OperatorDAO getOperatorDAO();
public abstract MobileDAO getMobileDAO();
public abstract ChargeDAO getChargeDAO();
public abstract ChargeRuleDAO getChargeRuleDAO();
public static DAOFactory getDAOFactory(int dbType)
{
switch(dbType)
{
case SQLSERVER:
return new SQLServerDAOFactory();
default:
return null;
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -