public interface Suid
| 限定符和类型 | 方法和说明 |
|---|---|
<T> int |
delete(T entity)
根据实体对象entity删除数据 According to entity object delete record.
|
<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.
|
<T> List<T> select(T entity)
entity - 与表对应的实体对象,且不能为空. 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=value<T> int update(T entity)
entity - 与表对应的实体对象,且不能为空;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)<T> int insert(T entity)
entity - 与表对应的实体对象,且不能为空. table's entity(do not allow null).
entity中非null且非空字符串将插入到数据库
The entity corresponding to table and can not be null.
The not null and not empty string will insert to database.<T> int delete(T entity)
entity - 与表对应的实体对象,且不能为空. 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=value<T> List<T> select(T entity, Condition condition)
entity - 与表对应的实体对象,且不能为空. table's entity(do not allow null).condition - 默认有值的字段会转成field=value的形式,其它形式可通过condition指定.condition使用过的字段,默认情况不会再处理.
if the field is not null or empty, it will be translate to field=value.Other can define with condition.Copyright © 2020. All rights reserved.