public class QueryEntityMongodb extends Object implements QueryEntity
| 构造器和说明 |
|---|
QueryEntityMongodb(Manager<MongoDBTemplate> manager,
Collection<T> entities) |
QueryEntityMongodb(Manager<MongoDBTemplate> manager,
T entity) |
| 限定符和类型 | 方法和说明 |
|---|---|
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) |
int |
delete() |
String |
insert() |
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 |
int |
update() |
int |
updateBy(String column) |
public QueryEntityMongodb(Manager<MongoDBTemplate> manager, T entity)
public QueryEntityMongodb(Manager<MongoDBTemplate> manager, Collection<T> entities)
public QueryEntity setTableName(String tableName)
QueryEntityTable annotationsetTableName 在接口中 QueryEntitypublic QueryEntity setFields(String... fields)
QueryEntitysetFields 在接口中 QueryEntitypublic QueryEntity setExceptFields(String... fields)
QueryEntitysetExceptFields 在接口中 QueryEntitypublic QueryUpdate addCondition(Condition cond)
ConditionAblename is not null addCondition("name", Conditions.IS_NOT_NULL)
addCondition 在接口中 ConditionAbleaddCondition 在接口中 QueryEntitypublic QueryUpdate addCondition(Consumer<List<Condition>> consumer)
addCondition 在接口中 ConditionAbleaddCondition 在接口中 QueryEntityconsumer - - conditionspublic String insert()
insert 在接口中 QueryEntitypublic int update()
update 在接口中 QueryEntitypublic int updateBy(String column)
updateBy 在接口中 QueryEntitypublic int delete()
delete 在接口中 QueryEntityCopyright © 2023. All rights reserved.