java.lang.Object
org.litebridge.db.spi.impl.function.aggregate.Count
All Implemented Interfaces:
SelectExpression

public class Count extends Object implements SelectExpression
COUNT(*) aggregate function.
  • Constructor Details

    • Count

      public Count()
  • Method Details

    • toSql

      public String toSql(Operation operation, ClauseType context, @Nullable DelegateExpression parent)
      Description copied from interface: SelectExpression
      Creates a SQL representation of the expression, providing the immediate nesting/parent expression.
      Specified by:
      toSql in interface SelectExpression
      Parameters:
      operation - the operation that is being executed
      context - The current clause type being evaluated
      parent - The parent expression/nesting expression, or null if this is a top-level expression
      Returns:
      the SQL representation of the expression