Class CodeServiceImpl

java.lang.Object
org.beangle.commons.dao.impl.BaseServiceImpl
org.openurp.code.service.impl.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 $
  • Field Summary

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

    entityDao, eventMulticaster, logger
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    <T extends org.beangle.commons.entity.pojo.Code<Integer>>
    T
    getCode(Class<T> codeClass, Integer codeId)
    依据code的类型和主键查找,无效时返回null.
    <T extends org.beangle.commons.entity.pojo.Code<Integer>>
    T
    getCode(Class<T> codeClass, String code)
    依据code的类型和代码查找,无效时返回null.
    <T extends org.beangle.commons.entity.pojo.Code<Integer>>
    List<T>
    getCodes(Class<T> codeClass)
    返回现有的有效使用的代码
    <T extends org.beangle.commons.entity.pojo.Code<Integer>>
    List<T>
    getCodes(Class<T> type, Integer... ids)
    查询指定id的基础代码
    Class<? extends org.beangle.commons.entity.pojo.Code<Integer>>
    查找指定名称基础代码
    void
    removeCodes(Class<? extends org.beangle.commons.entity.pojo.Code<Integer>> codeClass, Integer... codeIds)
    删除基础代码
    void
    saveOrUpdate(org.beangle.commons.entity.pojo.Code<Integer> code)
    新增代码 如果新的代码已经存在,则抛出异常.

    Methods inherited from class org.beangle.commons.dao.impl.BaseServiceImpl

    getEntityDao, getEventMulticaster, publish, setEntityDao, setEventMulticaster

    Methods inherited from class java.lang.Object

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

    • CodeServiceImpl

      public CodeServiceImpl()
  • Method Details

    • 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
    • getCodes

      public <T extends org.beangle.commons.entity.pojo.Code<Integer>> List<T> getCodes(Class<T> type, Integer... ids)
      Description copied from interface: CodeService
      查询指定id的基础代码
      Specified by:
      getCodes in interface CodeService
    • getCodeType

      public Class<? extends org.beangle.commons.entity.pojo.Code<Integer>> getCodeType(String name)
      Description copied from interface: CodeService
      查找指定名称基础代码
      Specified by:
      getCodeType in interface CodeService
    • removeCodes

      public void removeCodes(Class<? extends org.beangle.commons.entity.pojo.Code<Integer>> codeClass, Integer... codeIds)
      Description copied from interface: CodeService
      删除基础代码
      Specified by:
      removeCodes 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