
public class BaseCodeServiceImpl extends org.beangle.commons.dao.impl.BaseServiceImpl implements BaseCodeService
| Constructor and Description |
|---|
BaseCodeServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
<T extends org.beangle.commons.entity.pojo.BaseCode<Integer>> |
getCode(Class<T> codeClass,
Integer codeId)
依据code的类型和主键查找,无效时返回null.
|
<T extends org.beangle.commons.entity.pojo.BaseCode<Integer>> |
getCode(Class<T> codeClass,
String code)
依据code的类型和代码查找,无效时返回null.
|
<T extends org.beangle.commons.entity.pojo.BaseCode<Integer>> |
getCodes(Class<T> codeClass)
返回现有的有效使用的代码
|
<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)
新增代码 如果新的代码已经存在,则抛出异常.
|
public <T extends org.beangle.commons.entity.pojo.BaseCode<Integer>> T getCode(Class<T> codeClass, String code)
BaseCodeServicegetCode in interface BaseCodeServicepublic <T extends org.beangle.commons.entity.pojo.BaseCode<Integer>> List<T> getCodes(Class<T> codeClass)
BaseCodeServicegetCodes in interface BaseCodeServicepublic <T extends org.beangle.commons.entity.pojo.BaseCode<Integer>> T getCode(Class<T> codeClass, Integer codeId)
BaseCodeServicegetCode in interface BaseCodeServicepublic <T extends org.beangle.commons.entity.pojo.BaseCode<Integer>> List<T> getCodes(Class<T> type, Integer... ids)
BaseCodeServicegetCodes in interface BaseCodeServicepublic Class<? extends org.beangle.commons.entity.pojo.BaseCode<Integer>> getCodeType(String name)
BaseCodeServicegetCodeType in interface BaseCodeServicepublic void removeCodes(Class<? extends org.beangle.commons.entity.pojo.BaseCode<Integer>> codeClass, Integer... codeIds)
BaseCodeServiceremoveCodes in interface BaseCodeServicepublic void saveOrUpdate(org.beangle.commons.entity.pojo.BaseCode<Integer> code)
BaseCodeServicesaveOrUpdate in interface BaseCodeServiceCopyright © 2005-2013 The Beangle Software Group. All Rights Reserved.