DODS 7.1 API

org.enhydra.dods.cache
Class Condition

java.lang.Object
  extended by org.enhydra.dods.cache.Condition

public class Condition
extends java.lang.Object

This class stores one condition declared in WHERE part of SELECT clause.

Version:
2.0 15.06.2003.
Author:
Tanja Jovanovic

Field Summary
protected  int columnIndex
          Column index in the table.
protected  java.lang.String operator
          Operator (relation) of the condition.
protected  java.lang.Object value
          Value to which the column DO is compared against.
 
Constructor Summary
Condition(int colIndex, boolean value, java.lang.String oper)
          Constructor (int, boolean, String).
Condition(int colIndex, double value, java.lang.String oper)
          Constructor (int, double, String).
Condition(int colIndex, java.lang.Object value, java.lang.String oper)
          Constructor (int, Object, String).
 
Method Summary
 int getColumnIndex()
          Returns column index.
 java.lang.String getOperator()
          Returns operator.
 java.lang.Object getValue()
          Returns column value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

columnIndex

protected int columnIndex
Column index in the table.


value

protected java.lang.Object value
Value to which the column DO is compared against.


operator

protected java.lang.String operator
Operator (relation) of the condition.

Constructor Detail

Condition

public Condition(int colIndex,
                 java.lang.Object value,
                 java.lang.String oper)
Constructor (int, Object, String).

Parameters:
colIndex - Index of the column whose value will be compared.
value - The value to compare against.
oper - Operator.

Condition

public Condition(int colIndex,
                 boolean value,
                 java.lang.String oper)
Constructor (int, boolean, String).

Parameters:
colIndex - Index of the column whose value will be compared.
value - The boolean value to compare against.
oper - Operator.

Condition

public Condition(int colIndex,
                 double value,
                 java.lang.String oper)
Constructor (int, double, String).

Parameters:
colIndex - Index of the column whose value will be compared.
value - The double value to compare against.
oper - Operator.
Method Detail

getColumnIndex

public int getColumnIndex()
Returns column index.

Returns:
Column index.

getValue

public java.lang.Object getValue()
Returns column value.

Returns:
Column value.

getOperator

public java.lang.String getOperator()
Returns operator.

Returns:
Operator.

DODS 7.1 API