📄 daofactory.java
字号:
/* * DaoFactory.java * * Created on 2006年5月21日, 上午7:23 * * To change this template, choose Tools | Template Manager * and open the template in the editor. */package enova.dao;import enova.orm.hibernate.daoImpl.*;/** * * @author vlinux */public class DaoFactory { /** Creates a new instance of DaoFactory */ public DaoFactory() { } public static Object makeDao( String dao ){ if( dao.equals("ClassCourseDao") ){ return new ClassCourseDaoImpl(); }else if( dao.equals("ClassDao") ){ return new ClassDaoImpl(); }else if( dao.equals("CourseDao") ){ return new CourseDaoImpl(); }else if( dao.equals("DepartmentDao") ){ return new DepartmentDaoImpl(); }else if( dao.equals("RootDao") ){ return new RootDaoImpl(); }else if( dao.equals("ScoreDao") ){ return new ScoreDaoImpl(); }else if( dao.equals("SpecialDao") ){ return new SpecialDaoImpl(); }else if( dao.equals("StudentDao") ){ return new StudentDaoImpl(); }else if( dao.equals("TeacherDao") ){ return new TeacherDaoImpl(); }else{ return null; } } }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -