public abstract class ObjSQLAbstractServiceImpl extends Object implements ObjSQLService
| 构造器和说明 |
|---|
ObjSQLAbstractServiceImpl() |
| 限定符和类型 | 方法和说明 |
|---|---|
<T> int |
delete(T entity)
根据实体对象entity删除数据 According to entity object delete record.
|
abstract Suid |
getSuid() |
<T> int |
insert(T entity)
根据实体对象entity插入数据 According to entity object insert record.
|
<T> List<T> |
select(T entity)
根据实体对象entity查询数据
According to entity object select records from database.
|
<T> List<T> |
select(T entity,
Condition condition)
根据实体对象和Condition查询数据.select the records according to entity and condition.
|
<T> int |
update(T entity)
根据实体对象entity更新数据 According to entity object update record.
|
public abstract Suid getSuid()
public <T> int insert(T entity)
Suidpublic <T> List<T> select(T entity)
Suidselect 在接口中 Suidentity - 与表对应的实体对象,且不能为空. table's entity(do not allow null).
entity中非null且非空字符串作为过虑条件,操作符是等号.eg:field=value
entity corresponding to table and can not be null.
If the field value is not null and not empty string as filter condition,
the operator is equal sign.eg:field=valuepublic <T> int delete(T entity)
Suiddelete 在接口中 Suidentity - 与表对应的实体对象,且不能为空. table's entity(do not allow null).
entity中非null且非空字符串作为过虑条件,操作符是等号.eg:field=value
The entity corresponding to table and can not be null.
If the field value is not null and not empty string as filter condition,
the operator is equal sign.eg:field=valuepublic <T> int update(T entity)
Suidupdate 在接口中 Suidentity - 与表对应的实体对象,且不能为空;entity中id属性不能为空,作为过虑条件
entity中非null且非空字符串将更新到数据库(id除外).
table's entity(do not allow null);id is where condition,do not allow null.The entity corresponding to table and can not be null.
The ID field of entity cannot be null and as filter condition.
The not null and not empty string will update to database except ID.,
SuidRich#update(T entity,String updateFieldList)Copyright © 2020. All rights reserved.