org.castor.cpa.persistence.sql.query.condition
Enum CompareOperator

java.lang.Object
  extended by java.lang.Enum<CompareOperator>
      extended by org.castor.cpa.persistence.sql.query.condition.CompareOperator
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<CompareOperator>

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

Enumeration of comparison operators.

Version:
$Revision$ $Date: 2006-04-25 15:08:23 -0600 (Tue, 25 Apr 2006) $
Author:
Ahmad Hassan, Ralf Joachim

Enum Constant Summary
EQ
          Equal comparison operator.
GE
          Greater than or equal comparison operator.
GT
          Greater than comparison operator.
LE
          Less than or equal comparison operator.
LT
          Less than comparison operator.
NE
          Not equal comparison operator.
 
Method Summary
 CompareOperator inverse()
          Returns the inverse comparison operator.
 java.lang.String toString()
          Returns a string representation of the comparison operator in SQL syntax.
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

EQ

public static final CompareOperator EQ
Equal comparison operator.


NE

public static final CompareOperator NE
Not equal comparison operator.


LT

public static final CompareOperator LT
Less than comparison operator.


GE

public static final CompareOperator GE
Greater than or equal comparison operator.


GT

public static final CompareOperator GT
Greater than comparison operator.


LE

public static final CompareOperator LE
Less than or equal comparison 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

inverse

public CompareOperator inverse()
Returns the inverse comparison operator.

Returns:
Inverse comparison operator.

toString

public java.lang.String toString()
Returns a string representation of the comparison operator in SQL syntax.

Overrides:
toString in class java.lang.Enum<CompareOperator>
Returns:
String representation of the comparison operator in SQL syntax.


Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com