|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.torque.util.functions.AggregateFunction
org.apache.torque.util.functions.Count
public class Count
SQL99 Standard count function.
| Constructor Summary | |
|---|---|
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. |
|
Count(String sqlExpression)
Construct an COUNT function class with an SQL expression to count. |
|
| Method Summary | |
|---|---|
void |
setFunction(String function)
This method cannot be called, an UnsupportedOperationException will always be thrown. |
| Methods inherited from class org.apache.torque.util.functions.AggregateFunction |
|---|
getArgument, getArguments, getColumn, getColumnName, getFullTableName, getFunction, getSchemaName, getSqlExpression, getTableName, isDistinct, setArguments, setColumn |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Count(Column column)
column - the Column to count.public Count(String sqlExpression)
sqlExpression - the SQL expression to count.
public Count(Column column,
boolean distinct)
column - the Column to count.distinct - whether to count only over distinct values.| Method Detail |
|---|
public void setFunction(String function)
setFunction in class AggregateFunctionfunction - disregarded.
UnsupportedOperationException - always.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||