public class Form extends Object implements Serializable
| 限定符和类型 | 字段和说明 |
|---|---|
FormItemAdder |
and
添加条件项
|
| 限定符和类型 | 方法和说明 |
|---|---|
Form |
apply(Object value,
Consumer<IFormApply> apply)
添加IEntity字段提取和实例
|
int |
count()
按表单统计符合条件的记录数
|
int |
delete()
根据表单条件物理删除
|
<E extends IEntity> |
findOne()
按表单返回一条记录
|
List<FormItemOrder> |
getOrder() |
Map<String,Object> |
getUpdate() |
List<FormEntry> |
getWhere() |
<E extends IEntity> |
insert()
按表单新增记录
|
<E extends IEntity> |
list()
按表单条件查询记录列表
|
int |
logicDelete()
根据表单条件逻辑删除
|
Form |
orderBy(FieldMapping field,
boolean asc)
增加排序条件
|
<E extends IEntity> |
set(IGetter<E> getter,
Object value) |
Form |
set(String field,
Object value) |
Form |
setId(Number id) |
Form |
setId(String id) |
Form |
setPage(int currPage,
int pageSize)
标准分页时, 设置分页参数
|
<E extends IEntity> |
stdPage()
按表单返回标准分页记录
|
<E extends IEntity> |
tagPage()
按表单返回Tag分页记录
|
int |
update()
按表单更新记录
|
static <E extends IEntity> |
with(Class<E> eClass,
Object o,
Consumer<IFormApply> apply) |
static <E extends IEntity> |
with(Class<E> eClass,
String json) |
static <E extends IEntity> |
with(E o,
Consumer<IFormApply> apply) |
public final transient FormItemAdder and
public Form()
public Form(Class<E> eClass)
public List<FormItemOrder> getOrder()
public Form apply(Object value, Consumer<IFormApply> apply)
apply - IEntity字段值提取器value - IEntity实例public Form setPage(int currPage, int pageSize)
currPage - 当前页码号pageSize - 每页记录数public Form orderBy(FieldMapping field, boolean asc)
field - 排序字段asc - 是否正序public int count()
public <E extends IEntity> StdPagedList<E> stdPage()
E - 实例类型public <E extends IEntity> TagPagedList<E> tagPage()
E - 实例类型public <E extends IEntity> E findOne()
E - 实例类型public int update()
public <E extends IEntity> E insert()
public int delete()
public int logicDelete()
public static <E extends IEntity> Form with(E o, Consumer<IFormApply> apply)
Copyright © 2022. All rights reserved.