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:
java.io.Serializable, java.lang.Comparable<TopiaQuery.Op>
Enclosing class:
TopiaQuery<E extends TopiaEntity>

public static enum TopiaQuery.Op
extends java.lang.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
NOT_NULL
          IS NOT NULL
 
Field Summary
protected  java.lang.String value
           
 
Method Summary
 java.lang.String toString()
           
static TopiaQuery.Op valueOf(java.lang.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

Field Detail

value

protected java.lang.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(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

toString

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


Copyright © 2004-2010 CodeLutin. All Rights Reserved.