接口 CodeService
- 所有已知实现类:
CodeServiceImpl
public interface CodeService
- 版本:
- $Id: CodeService.java May 4, 2011 7:49:02 PM chaostone $
- 作者:
- chaostone
-
方法概要
修饰符和类型方法说明依据code的类型和主键查找,无效时返回null.依据code的类型和代码查找,无效时返回null.返回现有的有效使用的代码查询指定id的基础代码getCodeType(String name) 查找指定名称基础代码voidremoveCodes(Class<? extends Code<Integer>> codeClass, Integer... codeIds) 删除基础代码voidsaveOrUpdate(Code<Integer> code) 新增代码 如果新的代码已经存在,则抛出异常.
-
方法详细资料
-
getCode
依据code的类型和主键查找,无效时返回null.- 参数:
type-codeId-
-
getCode
依据code的类型和代码查找,无效时返回null.- 参数:
type-code-
-
getCodes
返回现有的有效使用的代码- 参数:
type-
-
getCodes
查询指定id的基础代码- 参数:
type-ids-
-
getCodeType
查找指定名称基础代码- 参数:
name-
-
saveOrUpdate
新增代码 如果新的代码已经存在,则抛出异常.- 参数:
code-
-
removeCodes
删除基础代码- 参数:
codeClass-codeIds-
-