public class QueryUpdateMongodb extends Object implements QueryUpdate
| 构造器和说明 |
|---|
QueryUpdateMongodb(ChannelContext context) |
| 限定符和类型 | 方法和说明 |
|---|---|
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() |
public QueryUpdateMongodb(ChannelContext context)
public QueryUpdate setTableName(String tableName)
QueryUpdateTable annotationsetTableName 在接口中 QueryUpdatepublic QueryUpdate setFields(String... fields)
QueryUpdatesetFields 在接口中 QueryUpdatepublic QueryUpdate setExceptFields(String... fields)
QueryUpdatesetExceptFields 在接口中 QueryUpdatepublic QueryUpdate addCondition(Condition cond)
ConditionAblename is not null addCondition("name", Conditions.IS_NOT_NULL)
addCondition 在接口中 ConditionAbleaddCondition 在接口中 QueryUpdatepublic QueryUpdate addCondition(Consumer<List<Condition>> consumer)
addCondition 在接口中 ConditionAbleaddCondition 在接口中 QueryUpdateconsumer - - conditionspublic int update()
update 在接口中 QueryUpdateCopyright © 2023. All rights reserved.