net.sf.seaf.common
Enum Operator

java.lang.Object
  extended by java.lang.Enum<Operator>
      extended by net.sf.seaf.common.Operator
All Implemented Interfaces:
Serializable, Comparable<Operator>

public enum Operator
extends Enum<Operator>

Comparison operator enumeration.


Enum Constant Summary
eq
          Equals.
eqex
          Equals if exists.
ex
          Exists.
ge
          Greater than or equals.
geex
          Greater than or equals if exists.
gt
          Greater than.
gtex
          Greater than if exists.
le
          Less than or equals.
leex
          Less than or equals if exists.
like
          Like.
likeex
          Like if exists.
lt
          Less than.
ltex
          Less than if exists.
neq
          Not equals.
neqex
          Not equals if exists.
nex
          Not exists.
 
Method Summary
 String getDescription()
           
 String getLabel()
           
 String getSql()
           
static Operator valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Operator[] 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

gt

public static final Operator gt
Greater than.


ge

public static final Operator ge
Greater than or equals.


lt

public static final Operator lt
Less than.


le

public static final Operator le
Less than or equals.


eq

public static final Operator eq
Equals.


neq

public static final Operator neq
Not equals.


like

public static final Operator like
Like.


ex

public static final Operator ex
Exists.


nex

public static final Operator nex
Not exists.


gtex

public static final Operator gtex
Greater than if exists.


geex

public static final Operator geex
Greater than or equals if exists.


ltex

public static final Operator ltex
Less than if exists.


leex

public static final Operator leex
Less than or equals if exists.


eqex

public static final Operator eqex
Equals if exists.


neqex

public static final Operator neqex
Not equals if exists.


likeex

public static final Operator likeex
Like if exists.

Method Detail

values

public static Operator[] 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 (Operator c : Operator.values())
    System.out.println(c);

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

valueOf

public static Operator valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

getSql

public String getSql()

getLabel

public String getLabel()

getDescription

public String getDescription()


Copyright © 2008-2012 SEAF. All Rights Reserved.