| 程序包 | 说明 |
|---|---|
| org.teasoft.bee.osql |
面向对象SQL相关.Function about Object SQL.
|
| org.teasoft.bee.osql.service |
Service层相关服务的类与接口.Interface and class about service layer.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static FunctionType |
FunctionType.valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static FunctionType[] |
FunctionType.values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
| 限定符和类型 | 方法和说明 |
|---|---|
Condition |
Condition.having(FunctionType functionType,
String field,
Op Op,
Number value)
having
eg: having(FunctionType.MIN, "field", Op.ge, 60)-->having min(field)>=60
|
Condition |
Condition.orderBy(FunctionType functionType,
String field,
OrderType orderType)
order by
eg: orderBy(FunctionType.MAX, "total", OrderType.DESC)-->order by max(total) desc
|
Condition |
Condition.selectFun(FunctionType functionType,
String fieldForFun)
设置使用函数查询结果.set select result with function.
|
Condition |
Condition.selectFun(FunctionType functionType,
String fieldForFun,
String alias)
设置使用函数查询结果.set select result with function.
|
<T> String |
SuidRich.selectWithFun(T entity,
FunctionType functionType,
String fieldForFun)
使用函数查询一个统计结果.Select result with one function,Just select one function.
|
<T> String |
SuidRich.selectWithFun(T entity,
FunctionType functionType,
String fieldForFun,
Condition condition)
使用函数查询一个统计结果,通过Condition可添加复杂过滤条件(一次只查询一个统计结果)
Select result with one function,just select one function at a time.
|
<T> String |
ObjToSQLRich.toSelectFunSQL(T entity,
FunctionType functionType,
String FieldForFun,
Condition condition) |
| 限定符和类型 | 方法和说明 |
|---|---|
<T> String |
ObjSQLRichAbstractServiceImpl.selectWithFun(T entity,
FunctionType functionType,
String fieldForFun) |
<T> String |
ObjSQLRichAbstractServiceImpl.selectWithFun(T entity,
FunctionType functionType,
String fieldForFun,
Condition condition) |
Copyright © 2021. All rights reserved.