public abstract class ObjSQLRichAbstractServiceImpl extends ObjSQLAbstractServiceImpl implements ObjSQLRichService
| 构造器和说明 |
|---|
ObjSQLRichAbstractServiceImpl() |
| 限定符和类型 | 方法和说明 |
|---|---|
<T> int |
delete(T entity,
IncludeType includeType)
根据实体对象entity删除数据
|
int |
deleteById(Class c,
Integer id) |
int |
deleteById(Class c,
Long id) |
int |
deleteById(Class c,
String ids) |
abstract SuidRich |
getSuidRich() |
<T> int[] |
insert(T[] entity) |
<T> int[] |
insert(T[] entity,
int batchSize) |
<T> int[] |
insert(T[] entity,
int batchSize,
String excludeFieldList) |
<T> int[] |
insert(T[] entity,
String excludeFieldList) |
<T> int |
insert(T entity,
IncludeType includeType)
根据实体对象entity插入数据
|
<T> List<T> |
select(T entity,
IncludeType includeType)
根据实体对象entity查询数据
|
<T> List<T> |
select(T entity,
int size) |
<T> List<T> |
select(T entity,
int from,
int size) |
<T> List<T> |
select(T entity,
String selectFields) |
<T> List<T> |
select(T entity,
String selectFields,
int from,
int size) |
<T> List<T> |
selectById(T entity,
Integer id) |
<T> List<T> |
selectById(T entity,
Long id) |
<T> List<T> |
selectById(T entity,
String ids) |
<T> String |
selectJson(T entity)
根据实体对象entity查询数据
|
<T> String |
selectJson(T entity,
IncludeType includeType)
根据实体对象entity查询数据
|
<T> T |
selectOne(T entity)
只返回一个实体,数量不为1测返回null
|
<T> List<T> |
selectOrderBy(T entity,
String orderFieldList)
order type default is:asc
返回有排序的结果集,排序的字段默认按升序排列
|
<T> List<T> |
selectOrderBy(T entity,
String orderFieldList,
OrderType[] orderTypes) |
<T> List<String[]> |
selectString(T entity)
select some field, every field will return the string type
查询部分字段,每个字段都是以字符串类型返回
|
<T> List<String[]> |
selectString(T entity,
String selectFields)
select some field, every field will return the string type
查询部分字段,每个字段都是以字符串类型返回
|
<T> String |
selectWithFun(T entity,
FunctionType functionType,
String fieldForFun) |
<T> int |
update(T entity,
IncludeType includeType)
根据实体对象entity更新数据
|
<T> int |
update(T entity,
String updateFieldList) |
<T> int |
update(T entity,
String updateFieldList,
IncludeType includeType)
根据实体对象entity更新数据
|
delete, getSuid, insert, select, updatepublic abstract SuidRich getSuidRich()
public <T> List<T> select(T entity, int size)
public <T> List<T> select(T entity, int from, int size)
public <T> int[] insert(T[] entity,
int batchSize,
String excludeFieldList)
public <T> int update(T entity,
String updateFieldList)
public <T> T selectOne(T entity)
SuidRichpublic <T> String selectWithFun(T entity, FunctionType functionType, String fieldForFun)
selectWithFun 在接口中 SuidRichentity - 传入的实体对象,且不能为空functionType - MAX,MIN,SUM,AVG,COUNTfieldForFun - 需要使用函数的字段public <T> List<T> selectOrderBy(T entity, String orderFieldList)
SuidRichselectOrderBy 在接口中 SuidRichentity - 传入的实体对象,且不能为空orderFieldList - 排序字段列表,多个用逗号隔开public <T> List<T> selectOrderBy(T entity, String orderFieldList, OrderType[] orderTypes)
selectOrderBy 在接口中 SuidRichpublic <T> int update(T entity,
String updateFieldList,
IncludeType includeType)
SuidRichpublic <T> List<T> select(T entity, IncludeType includeType)
SuidRichpublic <T> int update(T entity,
IncludeType includeType)
SuidRichpublic <T> int insert(T entity,
IncludeType includeType)
SuidRichpublic <T> int delete(T entity,
IncludeType includeType)
SuidRichpublic <T> List<String[]> selectString(T entity)
SuidRichselectString 在接口中 SuidRichpublic <T> List<String[]> selectString(T entity, String selectFields)
SuidRichselectString 在接口中 SuidRichselectFields - 需要查询的字段 多个用逗号隔开public <T> String selectJson(T entity)
SuidRichselectJson 在接口中 SuidRichentity - 与表对应的实体对象,且不能为空
entity中非null与非空字符串作为过虑条件,操作符是等号.eg:field=valuepublic <T> String selectJson(T entity, IncludeType includeType)
SuidRichselectJson 在接口中 SuidRichentity - 与表对应的实体对象,且不能为空
id为null不作为过滤条件includeType - 空字符串与null是否包含设置public <T> List<T> selectById(T entity, Integer id)
selectById 在接口中 SuidRichpublic <T> List<T> selectById(T entity, Long id)
selectById 在接口中 SuidRichpublic <T> List<T> selectById(T entity, String ids)
selectById 在接口中 SuidRichids - 主键id,多个用逗号隔开public int deleteById(Class c, Integer id)
deleteById 在接口中 SuidRichpublic int deleteById(Class c, Long id)
deleteById 在接口中 SuidRichpublic int deleteById(Class c, String ids)
deleteById 在接口中 SuidRichids - 主键id,多个用逗号隔开Copyright © 2019. All rights reserved.