Class PlanCommonDaoHibernate
java.lang.Object
org.beangle.orm.hibernate.HibernateEntityDao
org.openurp.edu.program.plan.dao.impl.PlanCommonDaoHibernate
- All Implemented Interfaces:
org.beangle.commons.dao.EntityDao,PlanCommonDao
public class PlanCommonDaoHibernate
extends org.beangle.orm.hibernate.HibernateEntityDao
implements PlanCommonDao
-
Nested Class Summary
Nested classes/interfaces inherited from class org.beangle.orm.hibernate.HibernateEntityDao
org.beangle.orm.hibernate.HibernateEntityDao.QuerySupport -
Field Summary
Fields inherited from class org.beangle.orm.hibernate.HibernateEntityDao
logger, modelMeta, sessionFactory -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCreditByTerm(ExecutivePlan plan, int term) 查找对于固定学期培养计划中要求的学分值.getDuplicatePrograms(Program program) booleanhasCourse(CourseGroup cgroup, Course course) booleanhasCourse(CourseGroup cgroup, Course course, PlanCourse planCourse) booleanisDuplicate(Program program) final voidremovePlan(CoursePlan plan) 删除一个计划,这个计划可能是专业计划也可能是个人计划final voidsaveOrUpdatePlan(CoursePlan plan) 保存或更新计划
调用saveSettingprotected voidsaveSetting(CoursePlan plan) 用于在保存的时候对Plan的属性进行一些设置,可以重载这个方法以提供额外的设置voidsetCodeService(CodeService codeService) floatstatPlanCredits(CoursePlan plan) 统计计划的总学分,总学分的值来自于顶级课程组的学分的累加,不保存,不采用递归统计
不递归统计的原因是,程序完全信赖计划中各个层级的课程组的学分要求的正确性Methods inherited from class org.beangle.orm.hibernate.HibernateEntityDao
count, count, count, createBlob, createBlob, createClob, duplicate, duplicate, evict, execute, execute, executeUpdate, executeUpdate, executeUpdateRepeatly, exist, exist, exist, get, get, get, get, get, get, get, get, get, getAll, getSession, initialize, refresh, remove, remove, remove, remove, remove, save, saveOrUpdate, saveOrUpdate, saveOrUpdate, saveOrUpdate, search, search, search, search, search, setModelMeta, setSessionFactory, uniqueResult, update, update
-
Constructor Details
-
PlanCommonDaoHibernate
public PlanCommonDaoHibernate()
-
-
Method Details
-
removePlan
Description copied from interface:PlanCommonDao删除一个计划,这个计划可能是专业计划也可能是个人计划- Specified by:
removePlanin interfacePlanCommonDao
-
saveOrUpdatePlan
Description copied from interface:PlanCommonDao保存或更新计划
调用saveSetting- Specified by:
saveOrUpdatePlanin interfacePlanCommonDao
-
saveSetting
用于在保存的时候对Plan的属性进行一些设置,可以重载这个方法以提供额外的设置- Parameters:
plan-
-
statPlanCredits
Description copied from interface:PlanCommonDao统计计划的总学分,总学分的值来自于顶级课程组的学分的累加,不保存,不采用递归统计
不递归统计的原因是,程序完全信赖计划中各个层级的课程组的学分要求的正确性- Specified by:
statPlanCreditsin interfacePlanCommonDao- Returns:
- See Also:
-
PlanCourseGroupCommonDao.updateGroupTreeCredits
-
hasCourse
- Specified by:
hasCoursein interfacePlanCommonDao
-
hasCourse
- Specified by:
hasCoursein interfacePlanCommonDao
-
getUsedCourseTypeNames
- Specified by:
getUsedCourseTypeNamesin interfacePlanCommonDao
-
getUnusedCourseTypes
- Specified by:
getUnusedCourseTypesin interfacePlanCommonDao
-
getUnusedCourseTypeNames
- Specified by:
getUnusedCourseTypeNamesin interfacePlanCommonDao
-
getDuplicatePrograms
- Specified by:
getDuplicateProgramsin interfacePlanCommonDao
-
isDuplicate
- Specified by:
isDuplicatein interfacePlanCommonDao
-
getCreditByTerm
Description copied from interface:PlanCommonDao查找对于固定学期培养计划中要求的学分值.- Specified by:
getCreditByTermin interfacePlanCommonDaoterm- [1..maxTerm]- Returns:
-
setCodeService
-