public class Function extends SimpleBinaryOperator implements Expression, SelectItem, Cloneable
Constructor and Description |
---|
Function() |
Function(String name,
boolean allColumns) |
Function(String name,
ExpressionList parameters) |
Function(String name,
ExpressionList parameters,
boolean allColumns,
boolean distinct,
boolean isEscaped) |
Modifier and Type | Method and Description |
---|---|
Function |
as(String aliasName) |
Function |
as(String aliasName,
boolean withAs) |
static Function |
avg() |
Function |
avg(String columnName) |
void |
builderExpression(StatementSqlBuilder builder)
实现接口的sql片段通过builder.appendSql(String
segment)进行拼接,也可以builder.getStringBuilder方法获取StringBuilder,然后进行append
实现的参数信息通过builder.addParamValue(Object...
|
void |
builderSelectItem(StatementSqlBuilder builder)
实现接口的sql片段通过builder.appendSql(String
segment)进行拼接,也可以builder.getStringBuilder方法获取StringBuilder,然后进行append
实现的参数信息通过builder.addParamValue(Object...
|
static Function |
count() |
Function |
count(String columnName) |
Alias |
getAlias() |
String |
getName()
The name of he function, i.e.
|
ExpressionList |
getParameters()
The list of parameters of the function (if any, else null) If the
parameter is "*", allColumns is set to true
|
boolean |
isAllColumns()
true if the parameter to the function is "*"
|
boolean |
isDistinct()
true if the function is "distinct"
|
boolean |
isEscaped()
Return true if it's in the form "{fn function_body() }"
|
static Function |
max() |
Function |
max(String columnName) |
static Function |
min() |
Function |
min(String columnName) |
void |
setAlias(Alias alias) |
void |
setAllColumns(boolean b) |
void |
setDistinct(boolean b) |
void |
setEscaped(boolean isEscaped) |
void |
setName(String string) |
void |
setParameters(ExpressionList list) |
static Function |
sum() |
Function |
sum(String columnName) |
String |
toString() |
between, eq, equal, getTransform, greaterThan, greaterThanEqual, gt, gte, in, inExpression, isEmpty, isNotEmpty, isNotNull, isNull, isParameterExpression, leftLike, lessThan, lessThanEqual, like, lt, lte, neq, notBetween, notEqual, notIn, notInExpression, notLeftLike, notLike, notRightLike, rightLike, setTransform, toCondition, transform
public Function()
public Function(String name, boolean allColumns)
public Function(String name, ExpressionList parameters)
public Function(String name, ExpressionList parameters, boolean allColumns, boolean distinct, boolean isEscaped)
public static Function sum()
public static Function count()
public static Function avg()
public static Function max()
public static Function min()
public String getName()
public void setName(String string)
public boolean isAllColumns()
public void setAllColumns(boolean b)
public Alias getAlias()
public void setAlias(Alias alias)
public boolean isDistinct()
public void setDistinct(boolean b)
public ExpressionList getParameters()
public void setParameters(ExpressionList list)
public boolean isEscaped()
public void setEscaped(boolean isEscaped)
public void builderExpression(StatementSqlBuilder builder)
ExpressionBuildProcessor
builderExpression
in interface ExpressionBuildProcessor
public void builderSelectItem(StatementSqlBuilder builder)
SelectItemBuildProcessor
builderSelectItem
in interface SelectItemBuildProcessor
Copyright © 2006–2018 TinyGroup. All rights reserved.