public class CodeServiceImpl extends org.beangle.commons.dao.impl.BaseServiceImpl implements CodeService
| Constructor and Description |
|---|
CodeServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
<T extends org.beangle.commons.entity.pojo.Code<Integer>> |
getCode(Class<T> codeClass,
Integer codeId)
依据code的类型和主键查找,无效时返回null.
|
<T extends org.beangle.commons.entity.pojo.Code<Integer>> |
getCode(Class<T> codeClass,
String code)
依据code的类型和代码查找,无效时返回null.
|
<T extends org.beangle.commons.entity.pojo.Code<Integer>> |
getCodes(Class<T> codeClass)
返回现有的有效使用的代码
|
<T extends org.beangle.commons.entity.pojo.Code<Integer>> |
getCodes(Class<T> type,
Integer... ids)
查询指定id的基础代码
|
Class<? extends org.beangle.commons.entity.pojo.Code<Integer>> |
getCodeType(String name)
查找指定名称基础代码
|
void |
removeCodes(Class<? extends org.beangle.commons.entity.pojo.Code<Integer>> codeClass,
Integer... codeIds)
删除基础代码
|
void |
saveOrUpdate(org.beangle.commons.entity.pojo.Code<Integer> code)
新增代码 如果新的代码已经存在,则抛出异常.
|
public <T extends org.beangle.commons.entity.pojo.Code<Integer>> T getCode(Class<T> codeClass, String code)
CodeServicegetCode in interface CodeServicepublic <T extends org.beangle.commons.entity.pojo.Code<Integer>> List<T> getCodes(Class<T> codeClass)
CodeServicegetCodes in interface CodeServicepublic <T extends org.beangle.commons.entity.pojo.Code<Integer>> T getCode(Class<T> codeClass, Integer codeId)
CodeServicegetCode in interface CodeServicepublic <T extends org.beangle.commons.entity.pojo.Code<Integer>> List<T> getCodes(Class<T> type, Integer... ids)
CodeServicegetCodes in interface CodeServicepublic Class<? extends org.beangle.commons.entity.pojo.Code<Integer>> getCodeType(String name)
CodeServicegetCodeType in interface CodeServicepublic void removeCodes(Class<? extends org.beangle.commons.entity.pojo.Code<Integer>> codeClass, Integer... codeIds)
CodeServiceremoveCodes in interface CodeServicepublic void saveOrUpdate(org.beangle.commons.entity.pojo.Code<Integer> code)
CodeServicesaveOrUpdate in interface CodeServiceCopyright © 2005–2016 The Beangle Software Group. All rights reserved.