Class CodeServiceImpl

  • All Implemented Interfaces:
    CodeService

    public class CodeServiceImpl
    extends org.beangle.commons.dao.impl.BaseServiceImpl
    implements CodeService
    Version:
    $Id: CodeServiceImpl.java May 5, 2011 3:33:07 PM chaostone $
    Author:
    chaostone
    • Field Summary

      • Fields inherited from class org.beangle.commons.dao.impl.BaseServiceImpl

        entityDao, eventMulticaster, logger
    • Constructor Summary

      Constructors 
      Constructor Description
      CodeServiceImpl()  
    • Constructor Detail

      • CodeServiceImpl

        public CodeServiceImpl()
    • Method Detail

      • getCode

        public <T extends org.beangle.commons.entity.pojo.Code<Integer>> T getCode​(Class<T> codeClass,
                                                                                   String code)
        Description copied from interface: CodeService
        依据code的类型和代码查找,无效时返回null.
        Specified by:
        getCode in interface CodeService
      • getCodes

        public <T extends org.beangle.commons.entity.pojo.Code<Integer>> List<T> getCodes​(Class<T> codeClass)
        Description copied from interface: CodeService
        返回现有的有效使用的代码
        Specified by:
        getCodes in interface CodeService
      • getCode

        public <T extends org.beangle.commons.entity.pojo.Code<Integer>> T getCode​(Class<T> codeClass,
                                                                                   Integer codeId)
        Description copied from interface: CodeService
        依据code的类型和主键查找,无效时返回null.
        Specified by:
        getCode in interface CodeService
      • saveOrUpdate

        public void saveOrUpdate​(org.beangle.commons.entity.pojo.Code<Integer> code)
        Description copied from interface: CodeService
        新增代码 如果新的代码已经存在,则抛出异常.
        Specified by:
        saveOrUpdate in interface CodeService