com.onewebsql.query
Class DeleteQuery

java.lang.Object
  extended by com.onewebsql.query.WhereQuery
      extended by com.onewebsql.query.DeleteQuery
All Implemented Interfaces:
Expression

public class DeleteQuery
extends WhereQuery

Represent the DELETE delete query.


Field Summary
static String FROM
          Constant used to build a query.
static String queryLexem
          Constant used to build a query.
protected  TableExpression table
          Table expression for which this query was created.
 
Fields inherited from class com.onewebsql.query.WhereQuery
where, WHERE
 
Fields inherited from interface com.onewebsql.query.Expression
COMMA, DOT, LB, QUESTION_MARK, RB, SPACE
 
Constructor Summary
DeleteQuery(TableExpression table)
          Constructor.
 
Method Summary
 void build(StringBuilder sb, String schemaName, List<Value> objs, DBAdapter adapter)
          Builds the text of the query (or a part of it) represented by this object.
 boolean equals(Object obj)
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class com.onewebsql.query.WhereQuery
getWhere, setWhere
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

queryLexem

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

See Also:
Constant Field Values

FROM

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

See Also:
Constant Field Values

table

protected TableExpression table
Table expression for which this query was created.

Constructor Detail

DeleteQuery

public DeleteQuery(TableExpression table)
Constructor.

Parameters:
table - table expression this query deletes from
Method Detail

build

public void build(StringBuilder sb,
                  String schemaName,
                  List<Value> objs,
                  DBAdapter adapter)
Description copied from interface: Expression
Builds the text of the query (or a part of it) represented by this object.

Parameters:
sb - StringBuilder to build the query text
schemaName - name of the database schema used to build the query
objs - an accumulator list to which query parameters are appended
adapter - database adapter which builds builds query in a way specific to the database engine

hashCode

public int hashCode()
Overrides:
hashCode in class WhereQuery

equals

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

toString

public String toString()
Overrides:
toString in class WhereQuery


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