public abstract class ColumnFunctionDecorator extends AbstractColumFunction implements Serializable
| 限定符和类型 | 字段和说明 |
|---|---|
protected ParameterBinder |
parameterBinder |
protected Integer |
value |
delegateFunction| 构造器和说明 |
|---|
ColumnFunctionDecorator() |
ColumnFunctionDecorator(AbstractColumFunction delegateFunction) |
ColumnFunctionDecorator(FieldFn<T,F> fn) |
ColumnFunctionDecorator(int value) |
ColumnFunctionDecorator(String tableAlias,
FieldFn<T,F> fn) |
ColumnFunctionDecorator(String tableAlias,
String columnName) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected String |
appendArithmeticSql(RenderContext context)
如果当前列列函数支持数学运算,则应追加此方法。
|
String |
getTableAlias() |
Fn<?,?> |
originColumn()
返回表函数的返回列定义。
|
ParameterBinder |
parameterBinder()
返回与当前 SQL 元素关联的参数绑定器。
|
add, add, add, add, divide, divide, divide, divide, getAliasTableMap, getArithmetic, getDataSourceName, getDelegateFunction, multiply, multiply, multiply, multiply, setAliasTableMap, setArithmetic, setDataSourceName, subtract, subtract, subtract, subtractclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetTableAliasrenderprotected Integer value
protected ParameterBinder parameterBinder
public ColumnFunctionDecorator()
public ColumnFunctionDecorator(AbstractColumFunction delegateFunction)
public ColumnFunctionDecorator(FieldFn<T,F> fn)
public ColumnFunctionDecorator(int value)
public Fn<?,?> originColumn()
TableFunction对于 table-valued function,其返回值通常是一个“虚拟表”, 该表至少包含一个列,因此需要提供对应的列表达式。
originColumn 在接口中 TableFunctionpublic ParameterBinder parameterBinder()
Bindable
若当前元素不包含任何动态参数,则可返回 null。
parameterBinder 在接口中 Bindablenull(表示无需绑定)public String getTableAlias()
getTableAlias 在接口中 ColumFunctionprotected String appendArithmeticSql(RenderContext context)
Copyright © 2024–2026 Dynamic-SQL. All rights reserved.