anderix.datajets
Class Comparison

java.lang.Object
  extended by anderix.datajets.Comparison

public class Comparison
extends java.lang.Object

Used as a parameter for several SqlBuilder methods. The methods that use this class are:

The purpose of these methods is to add conditional statements to the SQL statement represented by the SqlBuilder.

See Also:
SqlBuilder.andWhere(int, anderix.datajets.Comparison, java.lang.String), SqlBuilder.orWhere(int, anderix.datajets.Comparison, java.lang.String), SqlBuilder.andHaving(int, anderix.datajets.Comparison, java.lang.String), SqlBuilder.orHaving(int, anderix.datajets.Comparison, java.lang.String)

Field Summary
static Comparison EQUAL
          A comparison representing equality.
static Comparison GREATER_THAN
          A comparison representing greater than.
static Comparison GREATER_THAN_EQUAL
          A comparison representing greater than or equal.
static Comparison LESS_THAN
          A comparison representing less than.
static Comparison LESS_THAN_EQUAL
          A comparison representing less than or equal.
static Comparison LIKE
          A comparison representing similarity.
static Comparison NOT_EQUAL
          A comparison representing inequality.
 
Method Summary
 java.lang.String toString()
          Returns a String representation of the comparison operator.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

EQUAL

public static final Comparison EQUAL
A comparison representing equality. This is the = operator in SQL.


NOT_EQUAL

public static final Comparison NOT_EQUAL
A comparison representing inequality. This is the <> operator in SQL.


GREATER_THAN

public static final Comparison GREATER_THAN
A comparison representing greater than. This is the > operator in SQL.


LESS_THAN

public static final Comparison LESS_THAN
A comparison representing less than. This is the < operator in SQL.


GREATER_THAN_EQUAL

public static final Comparison GREATER_THAN_EQUAL
A comparison representing greater than or equal. This is the >= operator in SQL.


LESS_THAN_EQUAL

public static final Comparison LESS_THAN_EQUAL
A comparison representing less than or equal. This is the <= operator in SQL.


LIKE

public static final Comparison LIKE
A comparison representing similarity. This is the LIKE operator in SQL.

Method Detail

toString

public java.lang.String toString()
Returns a String representation of the comparison operator. This String is intended for use in a SQL statement.

Overrides:
toString in class java.lang.Object
Returns:
the comparison operator as a String