com.onewebsql.query
Class WhereQuery

java.lang.Object
  extended by com.onewebsql.query.WhereQuery
All Implemented Interfaces:
Expression
Direct Known Subclasses:
DeleteQuery, SelectQuery, UpdateQuery

public abstract class WhereQuery
extends Object
implements Expression

Base class of all queries which contains the WHERE clause (such as SELECT, UPDATE, DELETE). The WHERE clauses are represented as logical expressionsLExp.


Field Summary
protected  LExp where
          WHERE clause of the query
static String WHERE
          Constant used to build a query.
 
Fields inherited from interface com.onewebsql.query.Expression
COMMA, DOT, LB, QUESTION_MARK, RB, SPACE
 
Constructor Summary
WhereQuery()
          Constructor.
 
Method Summary
 boolean equals(Object obj)
           
 LExp getWhere()
          Returns the WHERE condition of the query.
 int hashCode()
           
 void setWhere(LExp where)
          Sets the WHERE condition of the query.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.onewebsql.query.Expression
build
 

Field Detail

WHERE

public static final String WHERE
Constant used to build a query.

See Also:
Constant Field Values

where

protected LExp where
WHERE clause of the query

Constructor Detail

WhereQuery

public WhereQuery()
Constructor. The WHERE condition is set to null.

Method Detail

getWhere

public LExp getWhere()
Returns the WHERE condition of the query.

Returns:
WHERE condition of the query

setWhere

public void setWhere(LExp where)
Sets the WHERE condition of the query.

Parameters:
where - the WHERE condition of the query

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2011-2013 e-point SA. All Rights Reserved.