All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class Zql.ZDelete

java.lang.Object
   |
   +----Zql.ZDelete

public class ZDelete
extends Object
implements ZStatement
ZDelete: an SQL DELETE statement.
SQL Syntax: DELETE [from] table [where Expression];


Constructor Index

 o ZDelete(String)
Create a DELETE statement on a given table

Method Index

 o addWhere(ZExp)
Add a WHERE clause to the DELETE statement
 o getTable()
 o getWhere()
 o toString()

Constructors

 o ZDelete
 public ZDelete(String tab)
Create a DELETE statement on a given table

Parameters:
tab - the table name

Methods

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

Parameters:
w - An SQL expression compatible with a WHERE clause
 o getTable
 public String getTable()
Returns:
The table concerned by the DELETE statement.
 o getWhere
 public ZExp getWhere()
Returns:
The SQL Where clause of the DELETE statement (an SQL Expression or Subquery, compatible with an SQL WHERE clause).
 o toString
 public String toString()
Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index