public class ConditionBuilder extends Object implements Builder<String>
Constructor and Description |
---|
ConditionBuilder(Condition... conditions)
构造
|
Modifier and Type | Method and Description |
---|---|
String |
build()
构建组合条件
例如:name = ? |
String |
build(List<Object> paramValues)
构建组合条件
例如:name = ? |
List<Object> |
getParamValues()
返回构建后的参数列表
此方法调用前必须调用 build() |
static ConditionBuilder |
of(Condition... conditions)
创建构建器
|
String |
toString()
构建组合条件
例如:name = ? |
public ConditionBuilder(Condition... conditions)
conditions
- 条件列表public static ConditionBuilder of(Condition... conditions)
conditions
- 条件列表public String build()
public String build(List<Object> paramValues)
paramValues
- 用于写出参数的List,构建时会将参数写入此ListCopyright © 2024. All rights reserved.