public class FunctionQueryColumn extends QueryColumn implements HasParamsColumn
| 限定符和类型 | 字段和说明 |
|---|---|
protected List<QueryColumn> |
columns |
protected String |
fnName |
alias, name, table| 构造器和说明 |
|---|
FunctionQueryColumn(String fnName) |
FunctionQueryColumn(String fnName,
QueryColumn... columns) |
FunctionQueryColumn(String fnName,
String... columns) |
| 限定符和类型 | 方法和说明 |
|---|---|
FunctionQueryColumn |
clone()
改写
Object.clone() 方法。 |
List<QueryColumn> |
getColumns() |
String |
getFnName() |
Object[] |
getParamValues() |
private String |
getSql(List<QueryTable> queryTables,
IDialect dialect)
获取函数括号里面的 SQL 内容。
|
void |
setColumns(List<QueryColumn> columns) |
void |
setFnName(String fnName) |
(专用程序包) String |
toConditionSql(List<QueryTable> queryTables,
IDialect dialect) |
String |
toSelectSql(List<QueryTable> queryTables,
IDialect dialect) |
String |
toString() |
add, add, as, as, as, asc, between, between, between, between, desc, divide, divide, eq, eq, eq, eq, ge, ge, ge, ge, getAlias, getName, getSelectTable, getTable, gt, gt, gt, gt, in, in, in, in, in, in, in, in, in, in, in, isNotNull, isNull, le, le, le, le, like, like, like, like, likeLeft, likeLeft, likeLeft, likeLeft, likeRaw, likeRaw, likeRaw, likeRaw, likeRight, likeRight, likeRight, likeRight, lt, lt, lt, lt, multiply, multiply, ne, ne, ne, ne, notBetween, notBetween, notBetween, notBetween, notIn, notIn, notIn, notIn, notIn, notIn, notIn, notIn, notIn, notIn, notIn, notLike, notLike, notLike, notLike, notLikeLeft, notLikeLeft, notLikeLeft, notLikeLeft, notLikeRaw, notLikeRaw, notLikeRaw, notLikeRaw, notLikeRight, notLikeRight, notLikeRight, notLikeRight, setAlias, setName, setTable, subtract, subtractisNotNull, isNotNull, isNull, isNullprotected List<QueryColumn> columns
public FunctionQueryColumn(String fnName)
public FunctionQueryColumn(String fnName, String... columns)
public FunctionQueryColumn(String fnName, QueryColumn... columns)
public List<QueryColumn> getColumns()
public void setColumns(List<QueryColumn> columns)
public Object[] getParamValues()
getParamValues 在接口中 HasParamsColumnpublic String toSelectSql(List<QueryTable> queryTables, IDialect dialect)
toSelectSql 在类中 QueryColumnString toConditionSql(List<QueryTable> queryTables, IDialect dialect)
toConditionSql 在类中 QueryColumnprivate String getSql(List<QueryTable> queryTables, IDialect dialect)
获取函数括号里面的 SQL 内容。
如果函数括号里面没有内容,就返回空字符串,这样构建出来就是函数名加括号。
例如,NOW() 函数的构建:
FunctionQueryColumn c1 = new FunctionQueryColumn("NOW");
FunctionQueryColumn c2 = new FunctionQueryColumn("NOW", new StringQueryColumn(""));
public String toString()
toString 在类中 QueryColumnpublic FunctionQueryColumn clone()
CloneSupportObject.clone() 方法。clone 在接口中 CloneSupport<QueryColumn>clone 在类中 QueryColumnCopyright © 2023. All rights reserved.