Interface CodeService
-
- All Known Implementing Classes:
CodeServiceImpl
public interface CodeService- Version:
- $Id: CodeService.java May 4, 2011 7:49:02 PM chaostone $
- Author:
- chaostone
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T extends org.beangle.commons.entity.pojo.Code<Integer>>
TgetCode(Class<T> type, Integer codeId)依据code的类型和主键查找,无效时返回null.<T extends org.beangle.commons.entity.pojo.Code<Integer>>
TgetCode(Class<T> type, String code)依据code的类型和代码查找,无效时返回null.<T extends org.beangle.commons.entity.pojo.Code<Integer>>
List<T>getCodes(Class<T> type)返回现有的有效使用的代码<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>>getCodeType(String name)查找指定名称基础代码voidremoveCodes(Class<? extends org.beangle.commons.entity.pojo.Code<Integer>> codeClass, Integer... codeIds)删除基础代码voidsaveOrUpdate(org.beangle.commons.entity.pojo.Code<Integer> code)新增代码 如果新的代码已经存在,则抛出异常.
-
-
-
Method Detail
-
getCode
<T extends org.beangle.commons.entity.pojo.Code<Integer>> T getCode(Class<T> type, Integer codeId)
依据code的类型和主键查找,无效时返回null.- Parameters:
type-codeId-
-
getCode
<T extends org.beangle.commons.entity.pojo.Code<Integer>> T getCode(Class<T> type, String code)
依据code的类型和代码查找,无效时返回null.- Parameters:
type-code-
-
getCodes
<T extends org.beangle.commons.entity.pojo.Code<Integer>> List<T> getCodes(Class<T> type)
返回现有的有效使用的代码- Parameters:
type-
-
getCodes
<T extends org.beangle.commons.entity.pojo.Code<Integer>> List<T> getCodes(Class<T> type, Integer... ids)
查询指定id的基础代码- Parameters:
type-ids-
-
getCodeType
Class<? extends org.beangle.commons.entity.pojo.Code<Integer>> getCodeType(String name)
查找指定名称基础代码- Parameters:
name-
-
saveOrUpdate
void saveOrUpdate(org.beangle.commons.entity.pojo.Code<Integer> code)
新增代码 如果新的代码已经存在,则抛出异常.- Parameters:
code-
-
-