Class Aggregate

java.lang.Object
com.aashish.javaormashcode.query.Aggregate
Direct Known Subclasses:
Avg, Count, Max, Min, Sum

public abstract class Aggregate extends Object
  • Constructor Details

    • Aggregate

      protected Aggregate(String function, String column)
  • Method Details

    • as

      public Aggregate as(String alias)
      Overrides the generated alias used for this aggregate result.
    • getAlias

      public String getAlias()
      Returns the alias that will be used in the result row.
    • toSql

      public String toSql()
      Renders this aggregate as a SQL projection.