- All Implemented Interfaces:
ColumnExpression,DelegateExpression,SelectExpression
AVG(column) aggregate function.-
Field Summary
Fields inherited from class org.litebridge.db.spi.impl.function.DelegateColumnExpressionImpl
columnIdentifierGeneratorFields inherited from class org.litebridge.db.spi.expression.DelegateColumnExpression
targetFields inherited from class org.litebridge.db.spi.expression.ColumnExpressionImpl
column -
Constructor Summary
ConstructorsConstructorDescriptionAvg(ColumnExpression target, ColumnIdentifierGenerator columnIdentifierGenerator) Constructs a newAVGfunction expression. -
Method Summary
Methods inherited from class org.litebridge.db.spi.impl.function.FunctionExpression
toSqlMethods inherited from class org.litebridge.db.spi.expression.DelegateColumnExpression
column, targetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.litebridge.db.spi.expression.SelectExpression
toSql
-
Constructor Details
-
Avg
Constructs a newAVGfunction expression.- Parameters:
target- The column expression to apply the function to.columnIdentifierGenerator- The generator for column identifiers.
-
-
Method Details
-
template
Description copied from class:FunctionExpressionGets the template for the SQL representation of the function.The template should contain a single "%s" placeholder for the column identifier.
- Specified by:
templatein classFunctionExpression- Returns:
- SQL representation template
-