Class Sum
java.lang.Object
io.github.torand.fastersql.function.aggregate.Sum
- All Implemented Interfaces:
Expression,AggregateFunction,ColumnFunction,Function,OrderExpression,LeftOperand,Projection,Sql
Implements the sum aggregate function.
-
Method Summary
Modifier and TypeMethodDescriptionalias()Gets the column alias (label) assigned for this projection.Gets the column aliases referenced by this fragment.Assigns a column alias (label) for this projection.Gets the columns referenced by this fragment.Gets the statement parameters introduced by this fragment.Formats object as an SQL fragment.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.github.torand.fastersql.expression.Expression
dividedBy, dividedBy, minus, minus, mod, mod, plus, plus, times, timesMethods inherited from interface io.github.torand.fastersql.predicate.LeftOperand
between, between, eq, eq, eq, eq, ge, ge, ge, ge, gt, gt, gt, gt, in, in, in, in, isNotNull, isNull, le, le, le, le, like, like, lt, lt, lt, lt, ne, ne, ne, ne, notBetween, notBetween, notIn, notIn, notIn, notLikeMethods inherited from interface io.github.torand.fastersql.order.OrderExpression
asc, ascIf, desc
-
Method Details
-
sql
Description copied from interface:SqlFormats object as an SQL fragment. -
params
Description copied from interface:SqlGets the statement parameters introduced by this fragment. -
columnRefs
Description copied from interface:SqlGets the columns referenced by this fragment. For validation purposes.- Specified by:
columnRefsin interfaceSql- Returns:
- the columns referenced by this fragment.
-
aliasRefs
Description copied from interface:SqlGets the column aliases referenced by this fragment. For validation purposes. -
as
Description copied from interface:ProjectionAssigns a column alias (label) for this projection.- Specified by:
asin interfaceProjection- Parameters:
alias- the column alias or label.- Returns:
- the projection with specified alias assigned.
-
alias
Description copied from interface:ProjectionGets the column alias (label) assigned for this projection.- Specified by:
aliasin interfaceProjection- Returns:
- the column alias (label) assigned for this projection.
-