java.lang.Object
com.aoindustries.aoserv.client.sql.SqlCount
- All Implemented Interfaces:
SqlExpression
Counts the number of rows.
- Author:
- AO Industries, Inc.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionevaluateAggregate(AoservConnector conn, List<AoservObject<?, ?>> rows) Evaluates the aggregate expression on the given connector and rows.getType()The return type of this expression.booleanIs this an aggregate function?toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.aoindustries.aoserv.client.sql.SqlExpression
evaluate, getReferencedTables
-
Field Details
-
COUNT
The case-insensitive function name.- See Also:
-
COUNT_FUNCTION
The case-insensitive representation as a function.- See Also:
-
-
Constructor Details
-
SqlCount
- Throws:
SQLExceptionIOException
-
-
Method Details
-
toString
-
getColumnName
- Specified by:
getColumnNamein interfaceSqlExpression
-
evaluateAggregate
Description copied from interface:SqlExpressionEvaluates the aggregate expression on the given connector and rows.- Specified by:
evaluateAggregatein interfaceSqlExpression
-
isAggregate
public boolean isAggregate()Description copied from interface:SqlExpressionIs this an aggregate function? Controls whether evaluation is performed viaSqlExpression.evaluate(com.aoindustries.aoserv.client.AoservConnector, com.aoindustries.aoserv.client.AoservObject)orSqlExpression.evaluateAggregate(com.aoindustries.aoserv.client.AoservConnector, java.util.List). Please be sure to implement the corresponding evaluation function.- Specified by:
isAggregatein interfaceSqlExpression
-
getType
Description copied from interface:SqlExpressionThe return type of this expression.- Specified by:
getTypein interfaceSqlExpression
-
