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
Modifier and TypeFieldDescriptionprotected SQLExpr
protected Boolean
protected SQLKeep
protected SQLAggregateOption
protected SQLOrderBy
protected SQLOver
protected SQLName
protected boolean
Fields inherited from class com.alibaba.druid.sql.ast.expr.SQLMethodInvokeExpr
arguments, from, hasFor, methodName, methodNameHashCode64, owner, resolvedReturnDataType, trimOption, using
Fields inherited from class com.alibaba.druid.sql.ast.SQLObjectImpl
attributes, hint, parent, sourceColumn, sourceLine
-
Constructor Summary
ConstructorDescriptionSQLAggregateExpr
(String methodName) SQLAggregateExpr
(String methodName, SQLAggregateOption option) SQLAggregateExpr
(String methodName, SQLAggregateOption option, SQLExpr... arguments) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
accept0
(SQLASTVisitor visitor) clone()
boolean
getKeep()
getOver()
Deprecated.int
hashCode()
boolean
boolean
boolean
boolean
void
void
setIgnoreNulls
(boolean ignoreNulls) void
void
setOption
(SQLAggregateOption option) void
setOrderBy
(SQLOrderBy orderBy) void
void
void
setWithinGroup
(boolean withinGroup) toString()
Methods inherited from class com.alibaba.druid.sql.ast.expr.SQLMethodInvokeExpr
accept0, addArgument, addParameter, cloneTo, getArguments, getFor, getFrom, getMethodName, getOwner, getParameters, getResolvedReturnDataType, getTrimOption, getUsing, match, methodNameHashCode64, output, setArgument, setFor, setFrom, setMethodName, setOwner, setResolvedReturnDataType, setTrimOption, setUsing
Methods inherited from class com.alibaba.druid.sql.ast.SQLObjectImpl
accept, acceptChild, acceptChild, addAfterComment, addAfterComment, addBeforeComment, addBeforeComment, containsAttribute, getAfterCommentsDirect, getAttribute, getAttributes, getAttributesDirect, getBeforeCommentsDirect, getHint, getParent, getSourceColumn, getSourceLine, hasAfterComment, hasBeforeComment, output, putAttribute, setHint, setParent, setSourceColumn, 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, hasAfterComment, hasBeforeComment, output, putAttribute, setParent
-
Field Details
-
option
-
keep
-
filter
-
over
-
overRef
-
orderBy
-
withinGroup
protected boolean withinGroup -
ignoreNulls
-
-
Constructor Details
-
SQLAggregateExpr
-
SQLAggregateExpr
-
SQLAggregateExpr
-
-
Method Details
-
getOrderBy
-
setOrderBy
-
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
-
setIgnoreNulls
public void setIgnoreNulls(boolean ignoreNulls) -
toString
- Overrides:
toString
in classSQLObjectImpl
-
accept0
- Overrides:
accept0
in classSQLMethodInvokeExpr
-
getChildren
- Specified by:
getChildren
in interfaceSQLExpr
- Overrides:
getChildren
in classSQLMethodInvokeExpr
-
getFilter
-
setFilter
-
equals
- Overrides:
equals
in classSQLMethodInvokeExpr
-
hashCode
public int hashCode()- Overrides:
hashCode
in classSQLMethodInvokeExpr
-
clone
-
computeDataType
- Specified by:
computeDataType
in interfaceSQLExpr
- Overrides:
computeDataType
in classSQLMethodInvokeExpr
-
replace
- Specified by:
replace
in interfaceSQLReplaceable
- Overrides:
replace
in classSQLMethodInvokeExpr
-