org.maverickdbms.basic
Class Condition

java.lang.Object
  extended byorg.maverickdbms.basic.Condition

public class Condition
extends java.lang.Object

This class represents a single condition in a query


Field Summary
static int AND
           
static int ASSOCIATED
           
static int BETWEEN
           
static int EQ
           
static int EVERY
           
static int FIELD
           
static int GE
           
static int GT
           
static int LE
           
static int LIKE
           
static int LT
           
static int NE
           
static int NUMBER
           
static int OR
           
static int STRING
           
static int UNLIKE
           
static int WHEN
           
static int WITH
           
 
Constructor Summary
Condition(MathInterface math, Field data)
           
Condition(MathInterface math, int type, Condition data)
           
Condition(MathInterface math, int type, ConstantString data)
           
 
Method Summary
 ConstantString eval(ConstantString id, ConstantString record)
           
 java.lang.Object getData()
           
 Condition getNext()
           
 int getType()
           
 void setNext(Condition n)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

AND

public static final int AND
See Also:
Constant Field Values

ASSOCIATED

public static final int ASSOCIATED
See Also:
Constant Field Values

BETWEEN

public static final int BETWEEN
See Also:
Constant Field Values

EQ

public static final int EQ
See Also:
Constant Field Values

EVERY

public static final int EVERY
See Also:
Constant Field Values

FIELD

public static final int FIELD
See Also:
Constant Field Values

LE

public static final int LE
See Also:
Constant Field Values

LIKE

public static final int LIKE
See Also:
Constant Field Values

LT

public static final int LT
See Also:
Constant Field Values

GE

public static final int GE
See Also:
Constant Field Values

GT

public static final int GT
See Also:
Constant Field Values

NE

public static final int NE
See Also:
Constant Field Values

NUMBER

public static final int NUMBER
See Also:
Constant Field Values

OR

public static final int OR
See Also:
Constant Field Values

STRING

public static final int STRING
See Also:
Constant Field Values

UNLIKE

public static final int UNLIKE
See Also:
Constant Field Values

WHEN

public static final int WHEN
See Also:
Constant Field Values

WITH

public static final int WITH
See Also:
Constant Field Values
Constructor Detail

Condition

public Condition(MathInterface math,
                 Field data)

Condition

public Condition(MathInterface math,
                 int type,
                 Condition data)

Condition

public Condition(MathInterface math,
                 int type,
                 ConstantString data)
Method Detail

eval

public ConstantString eval(ConstantString id,
                           ConstantString record)
                    throws mvException
Throws:
mvException

getData

public java.lang.Object getData()

getNext

public Condition getNext()

getType

public int getType()

setNext

public void setNext(Condition n)