com.objex.progeny.anywhere.legend
Enum CompareOperator

java.lang.Object
  extended by java.lang.Enum<CompareOperator>
      extended by com.objex.progeny.anywhere.legend.CompareOperator
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<CompareOperator>

public enum CompareOperator
extends java.lang.Enum<CompareOperator>
implements java.io.Serializable

A list of enum values for all possible comparion operators used in comparions.


Enum Constant Summary
QUERY_AND
          AND compare operator
QUERY_BEGINSWITH
          Starts with compare operator
QUERY_CONTAINS
          Contains compare operator
QUERY_DOESNOTBEGINWITH
          Does not start with compare operator
QUERY_DOESNOTCONTAIN
          Does not contain compare operator
QUERY_DOESNOTENDWITH
          Does not end with compare operator
QUERY_DOESNOTEQUAL
          Does not equal compare operator
QUERY_ENDSWITH
          Ends with compare operator
QUERY_EQUALS
          Equals compare operator
QUERY_IN
          In compare operator
QUERY_ISBLANK
          Is blank or is null compare operator
QUERY_ISGREATERTHAN
          Greater than compare operator
QUERY_ISGREATERTHANOREQUALTO
          Greather than or equal to compare operator
QUERY_ISLESSTHAN
          Less than compare operator
QUERY_ISLESSTHANOREQUALTO
          Is less than or equal to compare operator
QUERY_ISNOTBLANK
          Is not blank or null compare operator
QUERY_ISNOTIN
          Not in compare operator
QUERY_ISNOTLIKE
          Not like compare operator
QUERY_ISNOTNULL
          Is not blank or null compare operator
QUERY_ISNULL
          Is blank or null compare operator
QUERY_LIKE
          Like compare operator
QUERY_OR
          OR compare operator
 
Method Summary
 int state()
           
static CompareOperator toOp(java.lang.String as_str_value)
           
 java.lang.String toString()
           
 java.lang.String toStrOp()
           
static CompareOperator valueOf(int ai_cpp_op)
           
static CompareOperator valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static CompareOperator[] 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

QUERY_EQUALS

public static final CompareOperator QUERY_EQUALS
Equals compare operator


QUERY_ISLESSTHAN

public static final CompareOperator QUERY_ISLESSTHAN
Less than compare operator


QUERY_ISGREATERTHAN

public static final CompareOperator QUERY_ISGREATERTHAN
Greater than compare operator


QUERY_DOESNOTEQUAL

public static final CompareOperator QUERY_DOESNOTEQUAL
Does not equal compare operator


QUERY_ISGREATERTHANOREQUALTO

public static final CompareOperator QUERY_ISGREATERTHANOREQUALTO
Greather than or equal to compare operator


QUERY_ISBLANK

public static final CompareOperator QUERY_ISBLANK
Is blank or is null compare operator


QUERY_ISNOTBLANK

public static final CompareOperator QUERY_ISNOTBLANK
Is not blank or null compare operator


QUERY_ISLESSTHANOREQUALTO

public static final CompareOperator QUERY_ISLESSTHANOREQUALTO
Is less than or equal to compare operator


QUERY_BEGINSWITH

public static final CompareOperator QUERY_BEGINSWITH
Starts with compare operator


QUERY_DOESNOTBEGINWITH

public static final CompareOperator QUERY_DOESNOTBEGINWITH
Does not start with compare operator


QUERY_ENDSWITH

public static final CompareOperator QUERY_ENDSWITH
Ends with compare operator


QUERY_DOESNOTENDWITH

public static final CompareOperator QUERY_DOESNOTENDWITH
Does not end with compare operator


QUERY_CONTAINS

public static final CompareOperator QUERY_CONTAINS
Contains compare operator


QUERY_DOESNOTCONTAIN

public static final CompareOperator QUERY_DOESNOTCONTAIN
Does not contain compare operator


QUERY_IN

public static final CompareOperator QUERY_IN
In compare operator


QUERY_ISNOTIN

public static final CompareOperator QUERY_ISNOTIN
Not in compare operator


QUERY_LIKE

public static final CompareOperator QUERY_LIKE
Like compare operator


QUERY_ISNOTLIKE

public static final CompareOperator QUERY_ISNOTLIKE
Not like compare operator


QUERY_ISNULL

public static final CompareOperator QUERY_ISNULL
Is blank or null compare operator


QUERY_ISNOTNULL

public static final CompareOperator QUERY_ISNOTNULL
Is not blank or null compare operator


QUERY_AND

public static final CompareOperator QUERY_AND
AND compare operator


QUERY_OR

public static final CompareOperator QUERY_OR
OR compare operator

Method Detail

values

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

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

valueOf

public static CompareOperator 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

state

public int state()
Returns:
The ID of the compare operator for this Enum

valueOf

public static CompareOperator valueOf(int ai_cpp_op)
Parameters:
ai_cpp_op - The OP value for the CompareOperator. Possible values are :-

Op Integer ValueEnum
1CompareOperator.QUERY_EQUALS
2CompareOperator.QUERY_ISLESSTHAN
3CompareOperator.QUERY_ISGREATERTHAN
4CompareOperator.QUERY_DOESNOTEQUAL
5CompareOperator.QUERY_ISLESSTHANOREQUALTO
6CompareOperator.QUERY_ISGREATERTHANOREQUALTO
7CompareOperator.QUERY_ISBLANK
8CompareOperator.QUERY_ISNOTBLANK
9CompareOperator.QUERY_BEGINSWITH
10CompareOperator.QUERY_DOESNOTBEGINWITH
11CompareOperator.QUERY_ENDSWITH
12CompareOperator.QUERY_DOESNOTENDWITH
13CompareOperator.QUERY_CONTAINS
14CompareOperator.QUERY_DOESNOTCONTAIN
15CompareOperator.QUERY_IN
16CompareOperator.QUERY_ISNOTIN
17CompareOperator.QUERY_LIKE
18CompareOperator.QUERY_ISNOTLIKE
19CompareOperator.QUERY_ISNULL
20CompareOperator.QUERY_ISNOTNULL
21CompareOperator.QUERY_AND
22CompareOperator.QUERY_OR
Returns:
The CompareOperator enum value derived from "ai_cpp_op"

toStrOp

public java.lang.String toStrOp()
Returns:
The display value of the compare operator e.g. = for EQUALS_OPERATOR

toOp

public static CompareOperator toOp(java.lang.String as_str_value)
Parameters:
as_str_value - The string equaivalent of the compare value
Returns:
The CompareValue enum value based of the value of "as_str_value" e.g. EQUALS_OPERATOR for =.

toString

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