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
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected SQLExprprotected booleanprotected SQLKeepprotected SQLExprprotected SQLAggregateOptionprotected SQLOrderByprotected SQLOverprotected SQLNameprotected booleanprotected booleanFields inherited from class com.alibaba.druid.sql.ast.expr.SQLMethodInvokeExpr
arguments, from, hasFor, methodName, methodNameHashCode64, owner, resolvedReturnDataType, trimOption, usingFields inherited from class com.alibaba.druid.sql.ast.SQLExprImpl
parenthesized, parenthesizedCountFields inherited from class com.alibaba.druid.sql.ast.SQLObjectImpl
attributes, hint, parent, sourceColumn, sourceLine -
Constructor Summary
ConstructorsConstructorDescriptionSQLAggregateExpr(String methodName) SQLAggregateExpr(String methodName, SQLAggregateOption option) SQLAggregateExpr(String methodName, SQLAggregateOption option, SQLExpr... arguments) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidclone()booleanbooleangetKeep()getLimit()getOver()Deprecated.inthashCode()booleanbooleanbooleanbooleanbooleanvoidvoidsetIgnoreNulls(boolean ignoreNulls) voidvoidvoidsetOption(SQLAggregateOption option) voidvoidvoidvoidsetRespectNulls(boolean respectNulls) voidsetWithinGroup(boolean withinGroup) toString()Methods inherited from class com.alibaba.druid.sql.ast.expr.SQLMethodInvokeExpr
accept0, addArgument, addParameter, cloneTo, getArgument, getArguments, getAs, getContent, getFor, getFrom, getMethodName, getOwner, getParameters, getResolvedReturnDataType, getTrimOption, getUsing, isRemoveBrackets, match, methodNameHashCode64, output, setArgument, setAs, setContent, setFor, setFrom, setMethodName, setOwner, setRemoveBrackets, setResolvedReturnDataType, setTrimOption, setUsingMethods inherited from class com.alibaba.druid.sql.ast.SQLExprImpl
cloneTo, getParenthesizedCount, increaseParenthesizedCount, isParenthesized, setParenthesized, setParenthesizedCountMethods 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, getSourceColumn, getSourceLine, hasAfterComment, hasBeforeComment, putAttribute, setHint, setParent, setSource, setSourceLineMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.alibaba.druid.sql.ast.SQLObject
accept, addAfterComment, addAfterComment, addBeforeComment, addBeforeComment, containsAttribute, getAfterCommentsDirect, getAttribute, getAttributes, getAttributesDirect, getBeforeCommentsDirect, getParent, getSourceColumn, getSourceLine, hasAfterComment, hasBeforeComment, putAttribute, setParent, setSource
-
Field Details
-
option
-
keep
-
filter
-
over
-
overRef
-
orderBy
-
limit
-
withinGroup
protected boolean withinGroup -
ignoreNulls
protected boolean ignoreNulls -
respectNulls
protected boolean respectNulls
-
-
Constructor Details
-
SQLAggregateExpr
-
SQLAggregateExpr
-
SQLAggregateExpr
-
-
Method Details
-
getOrderBy
-
setOrderBy
-
getLimit
-
setLimit
-
getOption
-
setOption
-
isDistinct
public boolean isDistinct() -
getOver
-
setOver
-
getOverRef
-
setOverRef
-
getKeep
-
setKeep
-
isWithinGroup
public boolean isWithinGroup() -
setWithinGroup
public void setWithinGroup(boolean withinGroup) -
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
- Overrides:
toStringin classSQLObjectImpl
-
accept0
- Overrides:
accept0in classSQLMethodInvokeExpr
-
getChildren
- Specified by:
getChildrenin interfaceSQLExpr- Overrides:
getChildrenin classSQLMethodInvokeExpr
-
getFilter
-
setFilter
-
equals
- Overrides:
equalsin classSQLMethodInvokeExpr
-
hashCode
public int hashCode()- Overrides:
hashCodein classSQLMethodInvokeExpr
-
clone
-
computeDataType
- Specified by:
computeDataTypein interfaceSQLExpr- Overrides:
computeDataTypein classSQLMethodInvokeExpr
-
replace
- Specified by:
replacein interfaceSQLReplaceable- Overrides:
replacein classSQLMethodInvokeExpr
-