2004.04.29


com.jdc.rdb.sql.dml.clause
Class Comparison

java.lang.Object
  |
  +--com.jdc.lang.Object
        |
        +--com.jdc.rdb.sql.dml.clause.Comparison

public final class Comparison
extends Object

Comparison provides a list of enumerated types for a Where clause comparison operator. Valid Where clause comparison operators are:

Version:
2.0
Author:
Jay Damon
See Also:
Where

Field Summary
static Comparison EQUAL
          The Where clause equal comparison operator (=).
static Comparison GREATER_THAN
          The Where clause greater than comparison operator (>).
static Comparison GREATER_THAN_OR_EQUAL
          The Where clause greater than or equal comparison operator (>=).
static Comparison LESS_THAN
          The Where clause less than comparison operator (<).
static Comparison LESS_THAN_OR_EQUAL
          The Where clause less than or equal comparison operator (<=).
static Comparison NOT_EQUAL
          The Where clause not equal comparison operator (<>).
 
Fields inherited from class com.jdc.lang.Object
string
 
Method Summary
 boolean equals(Object object)
          Compares this Comparison operator object to the specified object.
 String toString()
          Returns a String representation of this Comparison object.
static Comparison valueOf(String comparisonOperator)
          Returns a Comparison operator representation of this String value.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

EQUAL

public static final Comparison EQUAL
The Where clause equal comparison operator (=).


NOT_EQUAL

public static final Comparison NOT_EQUAL
The Where clause not equal comparison operator (<>).


LESS_THAN

public static final Comparison LESS_THAN
The Where clause less than comparison operator (<).


GREATER_THAN

public static final Comparison GREATER_THAN
The Where clause greater than comparison operator (>).


LESS_THAN_OR_EQUAL

public static final Comparison LESS_THAN_OR_EQUAL
The Where clause less than or equal comparison operator (<=).


GREATER_THAN_OR_EQUAL

public static final Comparison GREATER_THAN_OR_EQUAL
The Where clause greater than or equal comparison operator (>=).

Method Detail

equals

public boolean equals(Object object)
Compares this Comparison operator object to the specified object.

Overrides:
equals in class Object
Returns:
True if a specified object is equal to this Comparison operator object.
False if the specified object is not equal to this Comparison operator object.

toString

public String toString()
Returns a String representation of this Comparison object.

Overrides:
toString in class Object
Returns:
A String representation of this Comparison object.

valueOf

public static Comparison valueOf(String comparisonOperator)
Returns a Comparison operator representation of this String value.

Returns:
A Comparison operator representation of this String value.

2004.04.29



Copyright © 2004 J. Damon & Co.; All Rights Reserved WorldWide.