Class MajorCourseGroup
- java.lang.Object
-
- org.beangle.commons.entity.pojo.NumberIdObject<Long>
-
- org.beangle.commons.entity.pojo.LongIdObject
-
- org.openurp.edu.program.plan.model.AbstractCourseGroup
-
- org.openurp.edu.program.plan.model.MajorCourseGroup
-
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<CourseGroup>,org.beangle.commons.entity.Entity<Long>,CourseGroup
@Entity(name="org.openurp.edu.program.plan.model.MajorCourseGroup") public class MajorCourseGroup extends AbstractCourseGroup
专业计划课程组.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.openurp.edu.program.plan.model.AbstractCourseGroup
courseType, subCount
-
-
Constructor Summary
Constructors Constructor Description MajorCourseGroup()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddPlanCourses(List<PlanCourse> givenPlanCourses)添加计划课程Objectclone()得到全部有效课程.booleanequals(Object object)StringgetAlias()List<CourseGroup>getChildren()获得子节点集合.DirectiongetDirection()List<PlanCourse>getMajorPlanCourses()StringgetName()CourseGroupgetParent()获得上级组CoursePlangetPlan()获得课程方案List<PlanCourse>getPlanCourses()booleanisLeafGroup()booleanisSameGroup(Object object)voidsetAlias(String alias)voidsetChildren(List<CourseGroup> children)设置子节点集合voidsetDirection(Direction direction)voidsetParent(CourseGroup parent)设置上级组voidsetPlan(CoursePlan plan)设置课程方案voidsetPlanCourses(List<PlanCourse> planCourses)设置组内计划课程StringtoString()voidupdateCoursePlan(CoursePlan plan)更新对应的课程计划-
Methods inherited from class org.openurp.edu.program.plan.model.AbstractCourseGroup
addChildGroup, addPlanCourse, compareTo, getCourseCount, getCourseType, getCredits, getIndex, getIndexno, getPlanCourses, getRemark, getSubCount, getTermCredits, isCompulsory, removePlanCourse, setCourseCount, setCourseType, setCredits, setIndexno, setRemark, setSubCount, setTermCredits
-
Methods inherited from class org.beangle.commons.entity.pojo.NumberIdObject
getId, hashCode, isPersisted, isTransient, setId
-
-
-
-
Method Detail
-
isLeafGroup
public boolean isLeafGroup()
-
getName
public String getName()
- Specified by:
getNamein interfaceCourseGroup- Overrides:
getNamein classAbstractCourseGroup- Returns:
-
setPlanCourses
public void setPlanCourses(List<PlanCourse> planCourses)
Description copied from interface:CourseGroup设置组内计划课程- Parameters:
planCourses- 组内计划课程
-
getChildren
public List<CourseGroup> getChildren()
Description copied from interface:CourseGroup获得子节点集合.- Returns:
- 子节点集合
-
setChildren
public void setChildren(List<CourseGroup> children)
Description copied from interface:CourseGroup设置子节点集合- Parameters:
children- 子节点集合
-
getPlan
public CoursePlan getPlan()
Description copied from interface:CourseGroup获得课程方案- Returns:
- 课程方案
-
setPlan
public void setPlan(CoursePlan plan)
Description copied from interface:CourseGroup设置课程方案
-
addPlanCourses
public void addPlanCourses(List<PlanCourse> givenPlanCourses)
添加计划课程- Specified by:
addPlanCoursesin interfaceCourseGroup- Overrides:
addPlanCoursesin classAbstractCourseGroup- Parameters:
givenPlanCourses- 多个计划课程
-
updateCoursePlan
public void updateCoursePlan(CoursePlan plan)
Description copied from interface:CourseGroup更新对应的课程计划- Specified by:
updateCoursePlanin interfaceCourseGroup- Overrides:
updateCoursePlanin classAbstractCourseGroup
-
clone
public Object clone() throws CloneNotSupportedException
得到全部有效课程.- Specified by:
clonein interfaceCourseGroup- Overrides:
clonein classAbstractCourseGroup- Returns:
- 克隆后的组
- Throws:
CloneNotSupportedException
-
getMajorPlanCourses
public List<PlanCourse> getMajorPlanCourses()
-
getPlanCourses
public List<PlanCourse> getPlanCourses()
-
getParent
public CourseGroup getParent()
Description copied from interface:CourseGroup获得上级组- Returns:
- 上级组
-
setParent
public void setParent(CourseGroup parent)
Description copied from interface:CourseGroup设置上级组- Parameters:
parent- 上级组
-
equals
public boolean equals(Object object)
- Overrides:
equalsin classorg.beangle.commons.entity.pojo.NumberIdObject<Long>
-
isSameGroup
public boolean isSameGroup(Object object)
-
getAlias
public String getAlias()
-
setAlias
public void setAlias(String alias)
-
getDirection
public Direction getDirection()
-
setDirection
public void setDirection(Direction direction)
-
-