📄 daofactory.java
字号:
/* * DaoFactory.java * * Created on 2006年7月27日, 上午11:59 * * To change this template, choose Tools | Options and locate the template under * the Source Creation and Management node. Right-click the template and choose * Open. You can then make changes to the template in the Source Editor. */package tot.dao;import tot.dao.jdbc.*;import org.apache.commons.logging.Log;import org.apache.commons.logging.LogFactory;/** * * @author Administrator */public class DaoFactory { private static Log log = LogFactory.getLog(DaoFactory.class); private static PostDaoImplJDBC PostDao=new PostDaoImplJDBC(); private static AdminDaoImplJDBC AdminDao=new AdminDaoImplJDBC(); private static CatalogDaoImplJDBC CatalogDao=new CatalogDaoImplJDBC(); public static PostDaoImplJDBC getPostDAO() { return PostDao; } public static AdminDaoImplJDBC getAdminDAO(){ return AdminDao; } public static CatalogDaoImplJDBC getCatalogDAO(){ return CatalogDao; } /** Creates a new instance of DaoFactory */ public DaoFactory() { } }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -