public final class WhereUtil extends Object
| 构造器和说明 |
|---|
WhereUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static <ID extends Serializable> |
appendIdsWhere(Where where,
TableInfo tableInfo,
Collection<ID> ids)
使用 IN 拼接多个id条件
|
static void |
appendIdsWhere(Where where,
TableInfo tableInfo,
Serializable[] ids)
使用 IN 拼接多个id条件
|
static void |
appendIdWhere(Where where,
TableInfo tableInfo,
Serializable id)
拼接id条件
|
static void |
appendIdWhereWithEntity(Where where,
TableInfo tableInfo,
Object entity)
拼接id条件
|
static void |
appendIdWhereWithModel(Where where,
ModelInfo modelInfo,
Model<?> model)
拼接id条件
|
static <T> void |
appendVersionWhere(Where where,
TableInfo tableInfo,
T entity)
添加version条件
|
static Where |
create() |
static Where |
create(Consumer<Where> consumer)
创建和消费
|
static Where |
create(TableInfo tableInfo) |
static Where |
create(TableInfo tableInfo,
Consumer<Where> consumer) |
public static Where create()
public static void appendIdWhere(Where where, TableInfo tableInfo, Serializable id)
where - tableInfo - id - public static void appendIdWhereWithEntity(Where where, TableInfo tableInfo, Object entity)
where - tableInfo - entity - public static void appendIdWhereWithModel(Where where, ModelInfo modelInfo, Model<?> model)
where - modelInfo - model - public static void appendIdsWhere(Where where, TableInfo tableInfo, Serializable[] ids)
where - wheretableInfo - 表信息ids - public static <ID extends Serializable> void appendIdsWhere(Where where, TableInfo tableInfo, Collection<ID> ids)
where - wheretableInfo - 表信息ids - Copyright © 2025. All rights reserved.