Package com.alibaba.druid.sql.ast.expr
Class SQLAggregateExpr
- java.lang.Object
-
- com.alibaba.druid.sql.ast.SQLObjectImpl
-
- com.alibaba.druid.sql.ast.SQLExprImpl
-
- com.alibaba.druid.sql.ast.expr.SQLMethodInvokeExpr
-
- com.alibaba.druid.sql.ast.expr.SQLAggregateExpr
-
- All Implemented Interfaces:
SQLExpr,SQLObject,SQLReplaceable,Serializable,Cloneable
public class SQLAggregateExpr extends SQLMethodInvokeExpr implements Serializable, SQLReplaceable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected SQLExprfilterprotected booleanignoreNullsprotected SQLKeepkeepprotected SQLExprlimitprotected SQLAggregateOptionoptionprotected SQLOrderByorderByprotected SQLOveroverprotected SQLNameoverRefprotected booleanrespectNullsprotected booleanwithinGroup-
Fields inherited from class com.alibaba.druid.sql.ast.expr.SQLMethodInvokeExpr
arguments, from, hasFor, hashCode64, methodName, methodNameHashCode64, owner, resolvedReturnDataType, trimOption, using
-
Fields inherited from class com.alibaba.druid.sql.ast.SQLExprImpl
parenthesized, parenthesizedCount
-
Fields inherited from class com.alibaba.druid.sql.ast.SQLObjectImpl
attributes, hint, parent, sourceColumn, sourceLine
-
-
Constructor Summary
Constructors Constructor Description SQLAggregateExpr(String methodName)SQLAggregateExpr(String methodName, SQLAggregateOption option)SQLAggregateExpr(String methodName, SQLAggregateOption option, SQLExpr... arguments)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected voidaccept0(SQLASTVisitor v)SQLAggregateExprclone()SQLDataTypecomputeDataType()booleanequals(Object o)ListgetChildren()SQLExprgetFilter()booleangetIgnoreNulls()SQLKeepgetKeep()SQLExprgetLimit()SQLAggregateOptiongetOption()SQLOrderBygetOrderBy()SQLOvergetOver()SQLNamegetOverRef()SQLOrderBygetWithinGroup()Deprecated.inthashCode()booleanisDistinct()booleanisIgnoreNulls()booleanisRespectNulls()booleanisWithinGroup()booleanreplace(SQLExpr expr, SQLExpr target)voidsetFilter(SQLExpr x)voidsetIgnoreNulls(boolean ignoreNulls)voidsetKeep(SQLKeep keep)voidsetLimit(SQLExpr x)voidsetOption(SQLAggregateOption option)voidsetOrderBy(SQLOrderBy x)voidsetOver(SQLOver x)voidsetOverRef(SQLName x)voidsetRespectNulls(boolean respectNulls)voidsetWithinGroup(boolean withinGroup)StringtoString()-
Methods inherited from class com.alibaba.druid.sql.ast.expr.SQLMethodInvokeExpr
accept0, addArgument, addArguments, addParameter, cloneTo, computeHashCode64, getArgument, getArguments, getAs, getContent, getFor, getFrom, getMethodName, getOwner, getParameters, getResolvedReturnDataType, getTrimOption, getUsing, hashCode64, isRemoveBrackets, match, methodNameHashCode64, output, setArgument, setAs, setContent, setFor, setFrom, setMethodName, setOwner, setRemoveBrackets, setResolvedReturnDataType, setTrimOption, setUsing
-
Methods inherited from class com.alibaba.druid.sql.ast.SQLExprImpl
cloneTo, getParenthesizedCount, increaseParenthesizedCount, isParenthesized, setParenthesized, setParenthesizedCount
-
Methods inherited from class com.alibaba.druid.sql.ast.SQLObjectImpl
accept, acceptChild, acceptChild, addAfterComment, addAfterComment, addBeforeComment, addBeforeComment, cloneTo, containsAttribute, getAfterCommentsDirect, getAttribute, getAttributes, getAttributesDirect, getBeforeCommentsDirect, getHint, getParent, getParent, getSourceColumn, getSourceLine, hasAfterComment, hasBeforeComment, putAttribute, setHint, setParent, setSource, setSourceLine
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.alibaba.druid.sql.ast.SQLObject
accept, addAfterComment, addAfterComment, addBeforeComment, addBeforeComment, containsAttribute, getAfterCommentsDirect, getAttribute, getAttributes, getAttributesDirect, getBeforeCommentsDirect, getParent, getParent, getSourceColumn, getSourceLine, hasAfterComment, hasBeforeComment, putAttribute, setParent, setSource
-
-
-
-
Field Detail
-
option
protected SQLAggregateOption option
-
keep
protected SQLKeep keep
-
filter
protected SQLExpr filter
-
over
protected SQLOver over
-
overRef
protected SQLName overRef
-
orderBy
protected SQLOrderBy orderBy
-
limit
protected SQLExpr limit
-
withinGroup
protected boolean withinGroup
-
ignoreNulls
protected boolean ignoreNulls
-
respectNulls
protected boolean respectNulls
-
-
Constructor Detail
-
SQLAggregateExpr
public SQLAggregateExpr(String methodName)
-
SQLAggregateExpr
public SQLAggregateExpr(String methodName, SQLAggregateOption option)
-
SQLAggregateExpr
public SQLAggregateExpr(String methodName, SQLAggregateOption option, SQLExpr... arguments)
-
-
Method Detail
-
getOrderBy
public SQLOrderBy getOrderBy()
-
setOrderBy
public void setOrderBy(SQLOrderBy x)
-
getLimit
public SQLExpr getLimit()
-
setLimit
public void setLimit(SQLExpr x)
-
getOption
public SQLAggregateOption getOption()
-
setOption
public void setOption(SQLAggregateOption option)
-
isDistinct
public boolean isDistinct()
-
getOver
public SQLOver getOver()
-
setOver
public void setOver(SQLOver x)
-
getOverRef
public SQLName getOverRef()
-
setOverRef
public void setOverRef(SQLName x)
-
getKeep
public SQLKeep getKeep()
-
setKeep
public void setKeep(SQLKeep keep)
-
isWithinGroup
public boolean isWithinGroup()
-
setWithinGroup
public void setWithinGroup(boolean withinGroup)
-
getWithinGroup
@Deprecated public SQLOrderBy getWithinGroup()
Deprecated.
-
isIgnoreNulls
public boolean isIgnoreNulls()
-
getIgnoreNulls
public boolean getIgnoreNulls()
-
isRespectNulls
public boolean isRespectNulls()
-
setIgnoreNulls
public void setIgnoreNulls(boolean ignoreNulls)
-
setRespectNulls
public void setRespectNulls(boolean respectNulls)
-
toString
public String toString()
- Overrides:
toStringin classSQLObjectImpl
-
accept0
protected void accept0(SQLASTVisitor v)
- Overrides:
accept0in classSQLMethodInvokeExpr
-
getChildren
public List getChildren()
- Specified by:
getChildrenin interfaceSQLExpr- Overrides:
getChildrenin classSQLMethodInvokeExpr
-
getFilter
public SQLExpr getFilter()
-
setFilter
public void setFilter(SQLExpr x)
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classSQLMethodInvokeExpr
-
hashCode
public int hashCode()
- Overrides:
hashCodein classSQLMethodInvokeExpr
-
clone
public SQLAggregateExpr clone()
-
computeDataType
public SQLDataType computeDataType()
- Specified by:
computeDataTypein interfaceSQLExpr- Overrides:
computeDataTypein classSQLMethodInvokeExpr
-
replace
public boolean replace(SQLExpr expr, SQLExpr target)
- Specified by:
replacein interfaceSQLReplaceable- Overrides:
replacein classSQLMethodInvokeExpr
-
-