Class CoursePrefixSeqNoGeneratorImpl

java.lang.Object
org.beangle.orm.hibernate.HibernateEntityDao
org.openurp.edu.clazz.dao.hibernate.internal.CoursePrefixSeqNoGeneratorImpl
All Implemented Interfaces:
org.beangle.commons.dao.EntityDao, ClazzCRNGenerator

public class CoursePrefixSeqNoGeneratorImpl extends org.beangle.orm.hibernate.HibernateEntityDao implements ClazzCRNGenerator
课程代码为前缀,后边加上两位序号的编码方式
Since:
2011-09-23
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.beangle.orm.hibernate.HibernateEntityDao

    org.beangle.orm.hibernate.HibernateEntityDao.QuerySupport
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     

    Fields inherited from class org.beangle.orm.hibernate.HibernateEntityDao

    logger, modelMeta, sessionFactory
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected int
    gap(String a, String b)
     
    void
    依照教学任务的教学日历和学生类别进行生成序号
    void
    为一组任务生成课程序号
    protected void
    genClazzSeqNos(Collection<Clazz> clazzes, String prefix, List<String> seqNos)
    针对一批课程生成课程序号 FIXME 需要测试
     
    protected String
    根据任务确定前缀
    protected String
     
    void
     

    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • CoursePrefixSeqNoGeneratorImpl

      public CoursePrefixSeqNoGeneratorImpl()
  • Method Details

    • genClazzSeqNo

      public void genClazzSeqNo(Clazz clazz)
      Description copied from interface: ClazzCRNGenerator
      依照教学任务的教学日历和学生类别进行生成序号
      Specified by:
      genClazzSeqNo in interface ClazzCRNGenerator
    • gap

      protected int gap(String a, String b)
    • rollUp

      protected String rollUp(String a)
    • genClazzSeqNos

      public void genClazzSeqNos(Collection<Clazz> clazzes)
      Description copied from interface: ClazzCRNGenerator
      为一组任务生成课程序号
      Specified by:
      genClazzSeqNos in interface ClazzCRNGenerator
      Parameters:
      clazzes -
    • genClazzSeqNos

      protected void genClazzSeqNos(Collection<Clazz> clazzes, String prefix, List<String> seqNos)
      针对一批课程生成课程序号 FIXME 需要测试
      Parameters:
      clazzes - 带生成序号的课程
      prefix - 前缀
      seqNos - 已有的序号
    • getPrefix

      protected String getPrefix(Clazz clazz)
      根据任务确定前缀
      Parameters:
      clazz -
      Returns:
    • getInfix

      public String getInfix()
    • setInfix

      public void setInfix(String infix)