FileDocCategorySizeDatePackage
SearchOperator.javaAPI DocExample1926Mon Apr 03 17:21:48 BST 2000com.imaginary.lwp

SearchOperator

public class SearchOperator extends Object implements Serializable

Fields Summary
static final long
serialVersionUID
public static SearchOperator
EQUAL
public static SearchOperator
LIKE
public static SearchOperator
NOT_EQUAL
public static SearchOperator
LESS_THAN
public static SearchOperator
LESS_EQUAL
public static SearchOperator
GREATER_THAN
public static SearchOperator
GREATER_EQUAL
private int
operator
An internal flag describing which operator this is.
Constructors Summary
public SearchOperator()

    
      
        super();
    
private SearchOperator(int oper)

        super();
        operator = oper;
    
Methods Summary
public booleanequals(java.lang.Object ob)

        if( ob instanceof SearchOperator ) {
            SearchOperator op = (SearchOperator)ob;

            return (op.operator == operator);
        }
        else {
            return false;
        }
    
public inthashCode()

        return operator;
    
public java.lang.StringtoString()

        switch( operator ) {
        case 1:
            {
                return "=";
            }
        case 2:
            {
                return "LIKE";
            }
        case 3:
            {
                return "<>";
            }
        case 4:
            {
                return "<";
            }
        case 5:
            {
                return "<=";
            }
        case 6:
            {
                return ">";
            }
        case 7:
            {
                return ">=";
            }
        default:
            {
                return "UNKNOWN";
            }
        }