public interface Condition extends ConditionAssistant
| 限定符和类型 | 方法和说明 |
|---|---|
Condition |
and()
默认自动加 and.
|
Condition |
between(String field,
Number low,
Number high) |
Condition |
between(String field,
String low,
String high) |
Condition |
groupBy(String field) |
Condition |
having(FunctionType functionType,
String field,
Op Op,
Number value)
eg: having(FunctionType.MIN, "field", Op.ge, 60)-->having min(field)>=60
|
Condition |
having(String expressionStr)
eg:having("count(*)>5") --> having count(*)>5
|
Condition |
lParentheses() |
Condition |
notBetween(String field,
Number low,
Number high) |
Condition |
notBetween(String field,
String low,
String high) |
Condition |
op(String field,
Op Op,
Object value) |
Condition |
or() |
Condition |
orderBy(FunctionType functionType,
String field,
OrderType orderType)
eg: orderBy(FunctionType.MAX, "total", OrderType.DESC)-->order by max(total) desc
|
Condition |
orderBy(String field) |
Condition |
orderBy(String field,
OrderType orderType) |
Condition |
rParentheses() |
Condition |
setIncludeType(IncludeType includeType)
设置IncludeType过滤参数.op,between,notBetween方法设置的字段,不受includeType的值影响.
|
Condition |
size(Integer size) |
Condition |
start(Integer start) |
getFieldSet, getIncludeType, setSuidTypeCondition setIncludeType(IncludeType includeType)
includeType - Condition and()
Condition or()
Condition lParentheses()
Condition rParentheses()
Condition having(String expressionStr)
expressionStr - 表达式字符串,field不会被转化.
expression string,if contain field,it will not be translated.Condition having(FunctionType functionType, String field, Op Op, Number value)
functionType - 函数类型field - 实体字段,会被命名转换(如果需要).Op - 操作类型value - 值Condition orderBy(FunctionType functionType, String field, OrderType orderType)
functionType - field - orderType - Copyright © 2020. All rights reserved.