Class CodeServiceImpl
java.lang.Object
org.beangle.commons.dao.impl.BaseServiceImpl
org.beangle.ems.dictionary.service.impl.CodeServiceImpl
- All Implemented Interfaces:
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 -
Method Summary
Modifier and TypeMethodDescription依据code的类型和主键查找,无效时返回null.依据code的类型和代码查找,无效时返回null.返回现有的有效使用的代码查询指定id的基础代码getCodeType(String name) 查找指定名称基础代码voidremoveCodes(Class<? extends Code<Integer>> codeClass, Integer... codeIds) 删除基础代码voidsaveOrUpdate(Code<Integer> code) 新增代码 如果新的代码已经存在,则抛出异常.Methods inherited from class org.beangle.commons.dao.impl.BaseServiceImpl
getEntityDao, getEventMulticaster, publish, setEntityDao, setEventMulticaster
-
Constructor Details
-
CodeServiceImpl
public CodeServiceImpl()
-
-
Method Details
-
getCode
Description copied from interface:CodeService依据code的类型和代码查找,无效时返回null.- Specified by:
getCodein interfaceCodeService
-
getCodes
Description copied from interface:CodeService返回现有的有效使用的代码- Specified by:
getCodesin interfaceCodeService
-
getCode
Description copied from interface:CodeService依据code的类型和主键查找,无效时返回null.- Specified by:
getCodein interfaceCodeService
-
getCodes
Description copied from interface:CodeService查询指定id的基础代码- Specified by:
getCodesin interfaceCodeService
-
getCodeType
Description copied from interface:CodeService查找指定名称基础代码- Specified by:
getCodeTypein interfaceCodeService
-
removeCodes
Description copied from interface:CodeService删除基础代码- Specified by:
removeCodesin interfaceCodeService
-
saveOrUpdate
Description copied from interface:CodeService新增代码 如果新的代码已经存在,则抛出异常.- Specified by:
saveOrUpdatein interfaceCodeService
-