Enum CompareOperator
- java.lang.Object
-
- java.lang.Enum<CompareOperator>
-
- 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
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
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 namejava.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 classjava.lang.Enum<CompareOperator>
- Returns:
- String representation of the comparison operator in SQL syntax.
-
-