public interface QueryEntity extends ConditionAble
Custom table operations @author LazyToShow Date: 2017/10/21 Time: 23:19
| 限定符和类型 | 方法和说明 |
|---|---|
QueryUpdate |
addCondition(Condition cond)
Add the query condition, which does not require value,
eg: name is not null addCondition("name",
Conditions.IS_NOT_NULL) |
QueryUpdate |
addCondition(Consumer<List<Condition>> conds) |
int |
create() |
int |
delete() |
<T> T |
insert() |
<T> List<T> |
list() |
QueryEntity |
setExceptFields(String... fields)
All other fields are involved
|
QueryEntity |
setFields(String... fields)
Sets the fields that participate in the operation, with the highest priority
to override the fields of the entity class
|
QueryEntity |
setTableName(String tableName)
Set the table name, which has the highest priority to override the bean name
and
Table annotation |
<T> T |
unique() |
int |
update() |
int |
updateBy(String column) |
QueryEntity setTableName(String tableName)
Table annotationtableName - QueryEntity setFields(String... fields)
fields - QueryEntity setExceptFields(String... fields)
fields - QueryUpdate addCondition(Condition cond)
ConditionAblename is not null addCondition("name", Conditions.IS_NOT_NULL)
addCondition 在接口中 ConditionAbleQueryUpdate addCondition(Consumer<List<Condition>> conds)
addCondition 在接口中 ConditionAbleconds - - conditions<T> T insert()
int update()
int updateBy(String column)
<T> T unique()
<T> List<T> list()
int create()
int delete()
Copyright © 2023. All rights reserved.