Class AbstractCourseGroup
- java.lang.Object
-
- org.beangle.commons.entity.pojo.NumberIdObject<Long>
-
- org.beangle.commons.entity.pojo.LongIdObject
-
- org.openurp.edu.program.plan.model.AbstractCourseGroup
-
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<CourseGroup>,org.beangle.commons.entity.Entity<Long>,CourseGroup
- Direct Known Subclasses:
ExecuteCourseGroup,MajorCourseGroup,StdCourseGroup
@MappedSuperclass public abstract class AbstractCourseGroup extends org.beangle.commons.entity.pojo.LongIdObject implements CourseGroup, Cloneable
课程设置中的课程组- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected CourseTypecourseType课程类别protected shortsubCount要求完成组数protected Termsterms开课学期
-
Constructor Summary
Constructors Constructor Description AbstractCourseGroup()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddChildGroup(CourseGroup group)添加子组voidaddPlanCourse(PlanCourse planCourse)添加计划课程voidaddPlanCourses(List<PlanCourse> planCourses)添加计划课程Objectclone()克隆intcompareTo(CourseGroup o)shortgetCourseCount()获得组内要求门数CourseTypegetCourseType()获得课程类别.floatgetCredits()要求组内要求总学分intgetIndex()StringgetIndexno()StringgetName()List<PlanCourse>getPlanCourses(String terms)StringgetRemark()获得备注.shortgetSubCount()StringgetTermCredits()获得每学期学分TermsgetTerms()booleanisAutoAddup()是否自动累计学分voidremovePlanCourse(PlanCourse course)删除计划课程voidsetAutoAddup(boolean autoAddup)voidsetCourseCount(short courseCount)设置组内要求门数voidsetCourseType(CourseType courseType)设置课程类别voidsetCredits(float credits)设置组内要求总学分voidsetIndexno(String indexno)voidsetRemark(String remark)设置备注voidsetSubCount(short subCount)voidsetTermCredits(String termCredits)设置每学期学分voidsetTerms(Terms terms)voidupdateCoursePlan(CoursePlan plan)更新对应的课程计划-
Methods inherited from class org.beangle.commons.entity.pojo.NumberIdObject
equals, getId, hashCode, isPersisted, isTransient, setId
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.openurp.edu.program.plan.model.CourseGroup
getChildren, getParent, getPlan, getPlanCourses, setChildren, setParent, setPlan, setPlanCourses
-
-
-
-
Field Detail
-
subCount
protected short subCount
要求完成组数
-
courseType
@NotNull protected CourseType courseType
课程类别
-
terms
@NotNull protected Terms terms
开课学期
-
-
Method Detail
-
getName
public String getName()
- Specified by:
getNamein interfaceCourseGroup- Returns:
-
getIndex
public int getIndex()
- Specified by:
getIndexin interfaceCourseGroup
-
getSubCount
public short getSubCount()
- Specified by:
getSubCountin interfaceCourseGroup
-
setSubCount
public void setSubCount(short subCount)
- Specified by:
setSubCountin interfaceCourseGroup
-
addChildGroup
public void addChildGroup(CourseGroup group)
Description copied from interface:CourseGroup添加子组- Specified by:
addChildGroupin interfaceCourseGroup- Parameters:
group- 子组
-
addPlanCourse
public void addPlanCourse(PlanCourse planCourse)
Description copied from interface:CourseGroup添加计划课程- Specified by:
addPlanCoursein interfaceCourseGroup- Parameters:
planCourse- 计划课程
-
removePlanCourse
public void removePlanCourse(PlanCourse course)
Description copied from interface:CourseGroup删除计划课程- Specified by:
removePlanCoursein interfaceCourseGroup- Parameters:
course- 计划课程
-
clone
public Object clone() throws CloneNotSupportedException
Description copied from interface:CourseGroup克隆- Specified by:
clonein interfaceCourseGroup- Overrides:
clonein classObject- Returns:
- 克隆后的组
- Throws:
CloneNotSupportedException
-
getCourseType
public CourseType getCourseType()
Description copied from interface:CourseGroup获得课程类别.- Specified by:
getCourseTypein interfaceCourseGroup- Returns:
- 课程类别
-
setCourseType
public void setCourseType(CourseType courseType)
Description copied from interface:CourseGroup设置课程类别- Specified by:
setCourseTypein interfaceCourseGroup- Parameters:
courseType- 课程类别
-
getRemark
public String getRemark()
Description copied from interface:CourseGroup获得备注.- Specified by:
getRemarkin interfaceCourseGroup- Returns:
- 备注
-
setRemark
public void setRemark(String remark)
Description copied from interface:CourseGroup设置备注- Specified by:
setRemarkin interfaceCourseGroup- Parameters:
remark- 备注
-
getCredits
public float getCredits()
Description copied from interface:CourseGroup要求组内要求总学分- Specified by:
getCreditsin interfaceCourseGroup- Returns:
- 组内要求总学分
-
setCredits
public void setCredits(float credits)
Description copied from interface:CourseGroup设置组内要求总学分- Specified by:
setCreditsin interfaceCourseGroup- Parameters:
credits- 组内要求总学分
-
getCourseCount
public short getCourseCount()
Description copied from interface:CourseGroup获得组内要求门数- Specified by:
getCourseCountin interfaceCourseGroup- Returns:
- 组内要求门数
-
setCourseCount
public void setCourseCount(short courseCount)
Description copied from interface:CourseGroup设置组内要求门数- Specified by:
setCourseCountin interfaceCourseGroup- Parameters:
courseCount- 组内要求门数
-
getTermCredits
public String getTermCredits()
Description copied from interface:CourseGroup获得每学期学分- Specified by:
getTermCreditsin interfaceCourseGroup- Returns:
- 每学期学分
-
setTermCredits
public void setTermCredits(String termCredits)
Description copied from interface:CourseGroup设置每学期学分- Specified by:
setTermCreditsin interfaceCourseGroup- Parameters:
termCredits- 每学期学分
-
getIndexno
public String getIndexno()
- Specified by:
getIndexnoin interfaceCourseGroup
-
setIndexno
public void setIndexno(String indexno)
- Specified by:
setIndexnoin interfaceCourseGroup
-
isAutoAddup
public boolean isAutoAddup()
Description copied from interface:CourseGroup是否自动累计学分- Specified by:
isAutoAddupin interfaceCourseGroup
-
setAutoAddup
public void setAutoAddup(boolean autoAddup)
-
getTerms
public Terms getTerms()
- Specified by:
getTermsin interfaceCourseGroup
-
setTerms
public void setTerms(Terms terms)
- Specified by:
setTermsin interfaceCourseGroup
-
addPlanCourses
public void addPlanCourses(List<PlanCourse> planCourses)
添加计划课程- Specified by:
addPlanCoursesin interfaceCourseGroup- Parameters:
planCourses- 多个计划课程
-
updateCoursePlan
public void updateCoursePlan(CoursePlan plan)
Description copied from interface:CourseGroup更新对应的课程计划- Specified by:
updateCoursePlanin interfaceCourseGroup
-
getPlanCourses
public List<PlanCourse> getPlanCourses(String terms)
-
compareTo
public int compareTo(CourseGroup o)
- Specified by:
compareToin interfaceComparable<CourseGroup>
-
-