to.etc.webapp.query
Enum QSelectionFunction

java.lang.Object
  extended by java.lang.Enum<QSelectionFunction>
      extended by to.etc.webapp.query.QSelectionFunction
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<QSelectionFunction>

public enum QSelectionFunction
extends java.lang.Enum<QSelectionFunction>

All default and generic selection functions.

Author:
Frits Jalvingh Created on Jul 14, 2009

Enum Constant Summary
AVG
          agv(x)
COUNT
          count() the #of rows
COUNT_DISTINCT
          count a distinct thingerydoo
DISTINCT
          Make a distinct selection
ID
          A selector for the primary key
MAX
          max(x)
MIN
          min(x)
PROPERTY
          A selector which represents a property of the object
ROWCOUNT
          Hibernate has this, but probably has no idea where to get this from
SUM
          sum(x)
USER
          An user-defined (database specific) function.
 
Method Summary
static QSelectionFunction valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static QSelectionFunction[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

MIN

public static final QSelectionFunction MIN
min(x)


MAX

public static final QSelectionFunction MAX
max(x)


AVG

public static final QSelectionFunction AVG
agv(x)


SUM

public static final QSelectionFunction SUM
sum(x)


COUNT

public static final QSelectionFunction COUNT
count() the #of rows


COUNT_DISTINCT

public static final QSelectionFunction COUNT_DISTINCT
count a distinct thingerydoo


ROWCOUNT

public static final QSelectionFunction ROWCOUNT
Hibernate has this, but probably has no idea where to get this from


ID

public static final QSelectionFunction ID
A selector for the primary key


PROPERTY

public static final QSelectionFunction PROPERTY
A selector which represents a property of the object


USER

public static final QSelectionFunction USER
An user-defined (database specific) function.


DISTINCT

public static final QSelectionFunction DISTINCT
Make a distinct selection

Method Detail

values

public static QSelectionFunction[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (QSelectionFunction c : QSelectionFunction.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static QSelectionFunction valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null