daofactory.java

来自「一个留言板 系统平台: JSP+SQLServer 支持开通无限个数的留言」· Java 代码 · 共 39 行

JAVA
39
字号
/* * 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 + =
减小字号Ctrl + -
显示快捷键?