Class CountAll
java.lang.Object
io.github.torand.fastersql.function.aggregate.CountAll
- All Implemented Interfaces:
Expression,AggregateFunction,ColumnFunction,Function,OrderExpression,LeftOperand,Projection,Sql
Implements the count all aggregate function.
-
Method Summary
Modifier and TypeMethodDescriptionalias()Gets the column alias (label) assigned for this projection.Assigns a column alias (label) for this projection.asc()Creates an ascending ordering of this expression.ascIf(boolean condition) Creates an ordering of this expression, based on a condition.desc()Creates a descending ordering of this expression.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.sql.Sql
aliasRefs, columnRefs
-
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. -
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.
-
ascIf
Description copied from interface:OrderExpressionCreates an ordering of this expression, based on a condition. If condition is true, an ascending ordering is created. If condition is false, a descending ordering is created.- Specified by:
ascIfin interfaceOrderExpression- Parameters:
condition- the condition.- Returns:
- the order clause.
-
asc
Description copied from interface:OrderExpressionCreates an ascending ordering of this expression.- Specified by:
ascin interfaceOrderExpression- Returns:
- the order clause.
-
desc
Description copied from interface:OrderExpressionCreates a descending ordering of this expression.- Specified by:
descin interfaceOrderExpression- Returns:
- the order clause.
-