Module litebridge.db.spi.impl
Class Max
java.lang.Object
org.litebridge.db.spi.impl.expression.AbstractExpression
org.litebridge.db.spi.impl.expression.AbstractAliasedExpression
org.litebridge.db.spi.impl.expression.function.FunctionExpression
org.litebridge.db.spi.impl.expression.function.aggregate.Max
- All Implemented Interfaces:
AliasedExpression,DelegateExpression,SelectExpression
MAX(column) aggregate function.-
Field Summary
Fields inherited from class org.litebridge.db.spi.impl.expression.AbstractAliasedExpression
alias, tableAliasFields inherited from class org.litebridge.db.spi.impl.expression.AbstractExpression
labelGenerator -
Constructor Summary
ConstructorsConstructorDescriptionMax(SelectExpression target, @Nullable String alias, LabelGenerator labelGenerator) Creates a newMaxfunction. -
Method Summary
Methods inherited from class org.litebridge.db.spi.impl.expression.function.FunctionExpression
target, toSqlMethods inherited from class org.litebridge.db.spi.impl.expression.AbstractAliasedExpression
addAliasAs, alias, equals, hashCode, tableAlias, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.litebridge.db.spi.expression.SelectExpression
toSql
-
Constructor Details
-
Max
Creates a newMaxfunction.- Parameters:
target- the target column expressionalias- the alias for the column expressionlabelGenerator- the label generator for rendering aliases/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
-