Arch4J 1.1

org.arch4j.dataaccess.common
Class Condition

java.lang.Object
  |
  +--org.arch4j.dataaccess.common.Condition
Direct Known Subclasses:
JoinCondition

public class Condition
extends Object


Field Summary
protected  List ands
           
static String EQ
           
static String GE
           
static String GT
           
static String IN
           
static String LE
           
protected  String lhs
           
static String LIKE
           
static String LT
           
static String NE
           
protected  String operator
           
protected  List ors
           
protected  Object rhs
           
 
Constructor Summary
Condition(String lhs, boolean isNull)
          Matches for is null if true, or is not null if false
Condition(String lhs, String operator, Object rhs)
           
 
Method Summary
 void and(Condition cond)
           
 void and(String lhs, String operator, Object rhs)
           
 boolean getIsUpper()
           
 void or(Condition cond)
           
 void or(String lhs, String operator, Object rhs)
           
 void setIsUpper(boolean anIsUpperIndicator)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

EQ

public static final String EQ
See Also:
Constant Field Values

GT

public static final String GT
See Also:
Constant Field Values

GE

public static final String GE
See Also:
Constant Field Values

LT

public static final String LT
See Also:
Constant Field Values

LE

public static final String LE
See Also:
Constant Field Values

NE

public static final String NE
See Also:
Constant Field Values

LIKE

public static final String LIKE
See Also:
Constant Field Values

IN

public static final String IN
See Also:
Constant Field Values

lhs

protected String lhs

operator

protected String operator

rhs

protected Object rhs

ands

protected List ands

ors

protected List ors
Constructor Detail

Condition

public Condition(String lhs,
                 String operator,
                 Object rhs)

Condition

public Condition(String lhs,
                 boolean isNull)
Matches for is null if true, or is not null if false

Method Detail

and

public void and(String lhs,
                String operator,
                Object rhs)

and

public void and(Condition cond)

or

public void or(String lhs,
               String operator,
               Object rhs)

or

public void or(Condition cond)

getIsUpper

public boolean getIsUpper()

setIsUpper

public void setIsUpper(boolean anIsUpperIndicator)

toString

public String toString()
Overrides:
toString in class Object

Arch4J 1.1

Copyright © 2000-2004 SpiderLogic, a service of Wipfli Ullrich Bertelson LLP.