org.nuiton.topia.framework
Enum TopiaQuery.Op

java.lang.Object
  extended by java.lang.Enum<TopiaQuery.Op>
      extended by org.nuiton.topia.framework.TopiaQuery.Op
All Implemented Interfaces:
Serializable, Comparable<TopiaQuery.Op>
Enclosing class:
TopiaQuery

public static enum TopiaQuery.Op
extends Enum<TopiaQuery.Op>

Enum to simmplify using operation in query


Enum Constant Summary
EQ
          EQUALS *
GE
          GREATER OR EQUALS *
GT
          GREATER THAN *
LE
          LESS OR EQUALS *
LIKE
          LIKE for String manipulation *
LT
          LESS THAN *
NEQ
          NOT EQUAL *
NOT_NULL
          IS NOT NULL *
NULL
          IS NULL *
 
Field Summary
protected  String value
           
 
Method Summary
 String toString()
           
static TopiaQuery.Op valueOf(String name)
          Returns the enum constant of this type with the specified name.
static TopiaQuery.Op[] 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, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

EQ

public static final TopiaQuery.Op EQ
EQUALS *


GT

public static final TopiaQuery.Op GT
GREATER THAN *


GE

public static final TopiaQuery.Op GE
GREATER OR EQUALS *


LIKE

public static final TopiaQuery.Op LIKE
LIKE for String manipulation *


LT

public static final TopiaQuery.Op LT
LESS THAN *


LE

public static final TopiaQuery.Op LE
LESS OR EQUALS *


NOT_NULL

public static final TopiaQuery.Op NOT_NULL
IS NOT NULL *


NULL

public static final TopiaQuery.Op NULL
IS NULL *


NEQ

public static final TopiaQuery.Op NEQ
NOT EQUAL *

Field Detail

value

protected String value
Method Detail

values

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

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

valueOf

public static TopiaQuery.Op 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

toString

public String toString()
Overrides:
toString in class Enum<TopiaQuery.Op>


Copyright © 2004-2011 CodeLutin. All Rights Reserved.