org.gibello.zql
Class ZDelete

java.lang.Object
  extended by org.gibello.zql.ZDelete
All Implemented Interfaces:
java.io.Serializable, ZStatement

public class ZDelete
extends java.lang.Object
implements ZStatement

ZDelete: an SQL DELETE statement.
SQL Syntax: DELETE [from] table [where Expression];

See Also:
Serialized Form

Constructor Summary
ZDelete(java.lang.String tab)
          Create a DELETE statement on a given table
 
Method Summary
 void addWhere(ZExp w)
          Add a WHERE clause to the DELETE statement
 java.lang.String getTable()
           
 ZExp getWhere()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ZDelete

public ZDelete(java.lang.String tab)
Create a DELETE statement on a given table

Parameters:
tab - the table name
Method Detail

addWhere

public void addWhere(ZExp w)
Add a WHERE clause to the DELETE statement

Parameters:
w - An SQL expression compatible with a WHERE clause

getTable

public java.lang.String getTable()
Returns:
The table concerned by the DELETE statement.

getWhere

public ZExp getWhere()
Returns:
The SQL Where clause of the DELETE statement (an SQL Expression or Subquery, compatible with an SQL WHERE clause).

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object