Package org.apache.torque.util.functions

# Klasse Count

java.lang.Object
org.apache.torque.util.functions.AggregateFunction
org.apache.torque.util.functions.Count

Alle implementierten Schnittstellen:
  `Column`, `SQLFunction`

public class Count extends AggregateFunction
SQL99 Standard count function.

Version:
  $Id: Count.java 1848281 2018-12-06 10:48:36Z tv $

- ## Konstruktorübersicht

  Konstruktoren
  Konstruktor
  Beschreibung
  `Count(String sqlExpression)`
  Construct an COUNT function class with an SQL expression to count.
  `Count(Column column)`
  Construct an COUNT function class with the column to count.
  `Count(Column column, boolean distinct)`
  Construct an COUNT function class with the column to count and possibly a distinct modifier.

- ## Methodenübersicht

  Modifizierer und Typ
  Methode
  Beschreibung
  `void`
  `setFunction(String function)`
  This method cannot be called, an UnsupportedOperationException will always be thrown.

  ### Von Klasse geerbte Methoden org.apache.torque.util.functions.AggregateFunction

  `getArgument, getArguments, getColumn, getColumnName, getFullTableName, getFunction, getSchemaName, getSqlExpression, getTableName, isDistinct, setArguments, setColumn`

  ### Von Klasse geerbte Methoden java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Konstruktordetails

  - ### Count

    public Count(Column column)
    Construct an COUNT function class with the column to count.
    Parameter:
      `column` - the Column to count.

  - ### Count

    public Count(String sqlExpression)
    Construct an COUNT function class with an SQL expression to count.
    Parameter:
      `sqlExpression` - the SQL expression to count.

  - ### Count

    public Count(Column column, boolean distinct)
    Construct an COUNT function class with the column to count and possibly a distinct modifier.
    Parameter:
      `column` - the Column to count.
      `distinct` - whether to count only over distinct values.

- ## Methodendetails

  - ### setFunction

    public void setFunction(String function)
    This method cannot be called, an UnsupportedOperationException will always be thrown.
    Setzt außer Kraft:
      `setFunction` in Klasse `AggregateFunction`
    Parameter:
      `function` - disregarded.
    Löst aus:
      `UnsupportedOperationException` - always.