public class QueryEntityDevice extends Object implements QueryEntity
| 构造器和说明 |
|---|
QueryEntityDevice(Manager manager,
Collection<?> entrys) |
QueryEntityDevice(Manager manager,
Object entry) |
| 限定符和类型 | 方法和说明 |
|---|---|
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 |
create() |
int |
delete() |
Integer |
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) |
public QueryEntityDevice(Manager manager, Collection<?> entrys)
public QueryEntity setTableName(String tableName)
QueryEntityTable annotationsetTableName 在接口中 QueryEntitypublic QueryEntity setFields(String... fields)
QueryEntitysetFields 在接口中 QueryEntitypublic QueryEntity setExceptFields(String... fields)
QueryEntitysetExceptFields 在接口中 QueryEntitypublic Integer insert()
insert 在接口中 QueryEntitypublic int delete()
delete 在接口中 QueryEntitypublic int updateBy(String column)
updateBy 在接口中 QueryEntitypublic int update()
update 在接口中 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 int create()
create 在接口中 QueryEntitypublic <T> T unique()
unique 在接口中 QueryEntitypublic <T> List<T> list()
list 在接口中 QueryEntityCopyright © 2023. All rights reserved.