类 Session
- java.lang.Object
-
- org.beangle.commons.entity.pojo.NumberIdObject<Long>
-
- org.beangle.commons.entity.pojo.LongIdObject
-
- org.openurp.edu.clazz.model.Session
-
- 所有已实现的接口:
Serializable,Comparable<Session>,org.beangle.commons.entity.Entity<Long>
@Entity(name="org.openurp.edu.clazz.model.Session") public class Session extends org.beangle.commons.entity.pojo.LongIdObject implements Comparable<Session>
教学活动- 从以下版本开始:
- 2005-11-22
- 另请参阅:
- 序列化表格
-
-
字段概要
字段 修饰符和类型 字段 说明 protected Clazzclazz教学任务protected TeachingMethodteachingMethod授课方式protected TeachingNatureteachingNature授课性质protected org.beangle.orm.hibernate.udt.WeekTimetime上课时间
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 booleancanMergerWith(Session session)判断该教学活动的时间段能否与目标教学活动在[相邻时间段]上合并Objectclone()intcompareTo(Session session)teacher room weekday startUnit weekstate null will be put first,if another is not nullbooleancontains(Date oneDay)DategetBeginAt()ClazzgetClazz()StringgetContent()DategetEndAt()DategetFirstActivityTime()第一次活动时间DategetLastActivityTime()最后一次活动时间StringgetPlaces()Set<Classroom>getRooms()SubclazzgetSubclazz()Set<Teacher>getTeachers()TeachingMethodgetTeachingMethod()TeachingNaturegetTeachingNature()org.beangle.orm.hibernate.udt.WeekTimegetTime()static List<Session>mergeActivites(List<Session> tobeMerged)合并在年份和教学周占用上,可以合并的教学活动
合并标准是年份,教学周,教室,教师,星期voidmergeWith(Session other)将两排课活动合并,前提是两活动可以合并voidsetClazz(Clazz clazz)voidsetPlaces(String places)voidsetRooms(Set<Classroom> rooms)voidsetSubclazz(Subclazz subclazz)voidsetTeachers(Set<Teacher> teachers)voidsetTeachingMethod(TeachingMethod teachingMethod)voidsetTeachingNature(TeachingNature teachingNature)voidsetTime(org.beangle.orm.hibernate.udt.WeekTime time)StringtoString()
-
-
-
字段详细资料
-
clazz
@NotNull protected Clazz clazz
教学任务
-
time
protected org.beangle.orm.hibernate.udt.WeekTime time
上课时间
-
teachingNature
@NotNull protected TeachingNature teachingNature
授课性质
-
teachingMethod
@NotNull protected TeachingMethod teachingMethod
授课方式
-
-
方法详细资料
-
getFirstActivityTime
public Date getFirstActivityTime()
第一次活动时间- 返回:
-
getLastActivityTime
public Date getLastActivityTime()
最后一次活动时间- 返回:
-
canMergerWith
public boolean canMergerWith(Session session)
判断该教学活动的时间段能否与目标教学活动在[相邻时间段]上合并- 返回:
-
mergeWith
public void mergeWith(Session other)
将两排课活动合并,前提是两活动可以合并- 参数:
other-- 另请参阅:
canMergerWith(Session)
-
mergeActivites
public static List<Session> mergeActivites(List<Session> tobeMerged)
合并在年份和教学周占用上,可以合并的教学活动
合并标准是年份,教学周,教室,教师,星期
-
compareTo
public int compareTo(Session session)
teacher room weekday startUnit weekstate null will be put first,if another is not null- 指定者:
compareTo在接口中Comparable<Session>- 另请参阅:
Comparable.compareTo(Object)
-
toString
public String toString()
- 覆盖:
toString在类中Object- 另请参阅:
Object.toString()
-
getClazz
public Clazz getClazz()
- 返回:
- Returns the clazz.
-
setClazz
public void setClazz(Clazz clazz)
-
getTime
public org.beangle.orm.hibernate.udt.WeekTime getTime()
-
setTime
public void setTime(org.beangle.orm.hibernate.udt.WeekTime time)
-
getBeginAt
public Date getBeginAt()
-
getEndAt
public Date getEndAt()
-
contains
public boolean contains(Date oneDay)
-
getContent
public String getContent()
-
getPlaces
public String getPlaces()
-
setPlaces
public void setPlaces(String places)
-
getTeachingNature
public TeachingNature getTeachingNature()
-
setTeachingNature
public void setTeachingNature(TeachingNature teachingNature)
-
getTeachingMethod
public TeachingMethod getTeachingMethod()
-
setTeachingMethod
public void setTeachingMethod(TeachingMethod teachingMethod)
-
getSubclazz
public Subclazz getSubclazz()
-
setSubclazz
public void setSubclazz(Subclazz subclazz)
-
-