public enum AggregateFunction extends Enum<AggregateFunction> implements Expression
| 限定符和类型 | 方法和说明 |
|---|---|
Expression |
getExpression() |
SqlNode |
toSqlNode(SqlNode baseSource,
SqlNode[] extSources,
Map<String,Object> bindings) |
SqlNode |
toSqlNode(SqlNode baseSource,
SqlNode[] extSources,
Object[] bindings) |
static AggregateFunction |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static AggregateFunction[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final AggregateFunction COUNT
public static final AggregateFunction SUM
public static final AggregateFunction MAX
public static final AggregateFunction MIN
public static final AggregateFunction AVG
public static AggregateFunction[] values()
for (AggregateFunction c : AggregateFunction.values()) System.out.println(c);
public static AggregateFunction valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public Expression getExpression()
public SqlNode toSqlNode(SqlNode baseSource, SqlNode[] extSources, Map<String,Object> bindings)
toSqlNode 在接口中 ExpressionbaseSource - 原引用表达式或字段extSources - 扩展引用表达式或字段bindings - 绑定参数Copyright © 2024 fossc. All rights reserved.