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.Gets the column aliases referenced by this fragment.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.Gets the columns referenced by this fragment.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, wait
-
Method Details
-
sql
Description copied from interface:Sql
Formats object as an SQL fragment. -
params
Description copied from interface:Sql
Gets the statement parameters introduced by this fragment. -
columnRefs
Description copied from interface:Sql
Gets the columns referenced by this fragment. For validation purposes.- Specified by:
columnRefs
in interfaceSql
- Returns:
- the columns referenced by this fragment.
-
aliasRefs
Description copied from interface:Sql
Gets the column aliases referenced by this fragment. For validation purposes. -
as
Description copied from interface:Projection
Assigns a column alias (label) for this projection.- Specified by:
as
in interfaceProjection
- Parameters:
alias
- the column alias or label.- Returns:
- the projection with specified alias assigned.
-
alias
Description copied from interface:Projection
Gets the column alias (label) assigned for this projection.- Specified by:
alias
in interfaceProjection
- Returns:
- the column alias (label) assigned for this projection.
-
ascIf
Description copied from interface:OrderExpression
Creates 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:
ascIf
in interfaceOrderExpression
- Parameters:
condition
- the condition.- Returns:
- the order clause.
-
asc
Description copied from interface:OrderExpression
Creates an ascending ordering of this expression.- Specified by:
asc
in interfaceOrderExpression
- Returns:
- the order clause.
-
desc
Description copied from interface:OrderExpression
Creates a descending ordering of this expression.- Specified by:
desc
in interfaceOrderExpression
- Returns:
- the order clause.
-