org.apache.torque.util.functions
Class FunctionEnum

java.lang.Object
  extended by org.apache.torque.util.functions.FunctionEnum
All Implemented Interfaces:
java.io.Serializable

public class FunctionEnum
extends java.lang.Object
implements java.io.Serializable

A typesafe enum of SQL Standard function names. Used by the FunctionFactory and (eventually) the DB Adaptors to create SQLFunction objects.

Version:
$Id
Author:
Greg Monroe
See Also:
Serialized Form

Field Summary
static FunctionEnum AVG
          The AVG( [Distinct] EXPR ) function id
static FunctionEnum COUNT
          The COUNT( [Distinct] EXPR ) function id
static FunctionEnum MAX
          The MAX( [Distinct] EXPR ) function id
static FunctionEnum MIN
          The MIN( [Distinct] EXPR ) function id
static FunctionEnum SUM
          The SUM( [Distinct] EXPR ) function id
 
Method Summary
 boolean equals(java.lang.Object o)
          returns whether o is the same FunctionEnum as this object.
 int hashCode()
          returns a hashcode for this object which is consistent with equals()
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

AVG

public static final FunctionEnum AVG
The AVG( [Distinct] EXPR ) function id


SUM

public static final FunctionEnum SUM
The SUM( [Distinct] EXPR ) function id


MAX

public static final FunctionEnum MAX
The MAX( [Distinct] EXPR ) function id


MIN

public static final FunctionEnum MIN
The MIN( [Distinct] EXPR ) function id


COUNT

public static final FunctionEnum COUNT
The COUNT( [Distinct] EXPR ) function id

Method Detail

toString

public final java.lang.String toString()
Overrides:
toString in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
returns whether o is the same FunctionEnum as this object. Two FunctionEnums are considered equal if they contain the same String.

Overrides:
equals in class java.lang.Object
Parameters:
o - the object to compare the FunctionEnum with.

hashCode

public int hashCode()
returns a hashcode for this object which is consistent with equals()

Overrides:
hashCode in class java.lang.Object


Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.