| 程序包 | 说明 |
|---|---|
| org.teasoft.bee.osql | |
| org.teasoft.bee.osql.service |
| 限定符和类型 | 方法和说明 |
|---|---|
Condition |
Condition.and()
默认自动加 and.
|
Condition |
Condition.between(String field,
Number low,
Number high) |
Condition |
Condition.between(String field,
String low,
String high) |
Condition |
Condition.groupBy(String field) |
Condition |
Condition.having(FunctionType functionType,
String field,
Op Op,
Number value)
eg: having(FunctionType.MIN, "field", Op.ge, 60)-->having min(field)>=60
|
Condition |
Condition.having(String expressionStr)
eg:having("count(*)>5") --> having count(*)>5
|
Condition |
Condition.lParentheses() |
Condition |
Condition.notBetween(String field,
Number low,
Number high) |
Condition |
Condition.notBetween(String field,
String low,
String high) |
Condition |
Condition.op(String field,
Op Op,
Object value) |
Condition |
Condition.or() |
Condition |
Condition.orderBy(FunctionType functionType,
String field,
OrderType orderType)
eg: orderBy(FunctionType.MAX, "total", OrderType.DESC)-->order by max(total) desc
|
Condition |
Condition.orderBy(String field) |
Condition |
Condition.orderBy(String field,
OrderType orderType) |
Condition |
Condition.rParentheses() |
Condition |
Condition.setIncludeType(IncludeType includeType)
设置IncludeType过滤参数.op,between,notBetween方法设置的字段,不受includeType的值影响.
|
Condition |
Condition.size(Integer size) |
Condition |
Condition.start(Integer start) |
| 限定符和类型 | 方法和说明 |
|---|---|
<T> List<T> |
Suid.select(T entity,
Condition condition)
根据实体对象和Condition查询数据.select the records according to entity and condition.
|
<T> List<T> |
MoreTable.select(T entity,
Condition condition)
根据实体对象和Condition查询数据.select the records according to entity and condition.
|
<T> List<T> |
SuidRich.select(T entity,
IncludeType includeType,
Condition condition)
已过时。
Suid的 select(T entity,Condition condition)方法中,可以通过condition设置includeType.
|
<T> String |
SuidRich.selectJson(T entity,
IncludeType includeType,
Condition condition)
根据实体对象entity查询数据,并以Json格式返回
|
<T> String |
ObjToSQL.toSelectSQL(T entity,
Condition condition)
根据entity和Condition转换成sql语句
|
<T> String |
MoreObjToSQL.toSelectSQL(T entity,
Condition condition)
根据entity和Condition转换成sql语句
|
<T> String |
ObjToSQLRich.toSelectSQL(T entity,
IncludeType includeType,
Condition condition) |
| 限定符和类型 | 方法和说明 |
|---|---|
<T> List<T> |
ObjSQLAbstractServiceImpl.select(T entity,
Condition condition) |
<T> List<T> |
ObjSQLRichAbstractServiceImpl.select(T entity,
IncludeType includeType,
Condition condition) |
<T> String |
ObjSQLRichAbstractServiceImpl.selectJson(T entity,
IncludeType includeType,
Condition condition) |
Copyright © 2020. All rights reserved.