⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 daofactory.java

📁 一个留言板 系统平台: JSP+SQLServer 支持开通无限个数的留言板
💻 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 + -