public interface QueryUpdate extends ConditionAble
QueryEn's derivative interface for handling modification operations, Used to add conditions to the modified operation
| 限定符和类型 | 方法和说明 |
|---|---|
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>> consumer) |
QueryUpdate |
setExceptFields(String... fields)
All other fields are involved
|
QueryUpdate |
setFields(String... fields)
Sets the fields that participate in the operation, with the highest priority
to override the fields of the entity class
|
QueryUpdate |
setTableName(String tableName)
Set the table name, which has the highest priority to override the bean name
and
Table annotation |
int |
update() |
QueryUpdate setTableName(String tableName)
Table annotationtableName - QueryUpdate setFields(String... fields)
fields - QueryUpdate setExceptFields(String... fields)
fields - QueryUpdate addCondition(Condition cond)
ConditionAblename is not null addCondition("name", Conditions.IS_NOT_NULL)
addCondition 在接口中 ConditionAbleQueryUpdate addCondition(Consumer<List<Condition>> consumer)
addCondition 在接口中 ConditionAbleconsumer - - conditionsint update()
Copyright © 2023. All rights reserved.