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