org.gibello.zql
Class ZDelete
java.lang.Object
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ZDelete
public ZDelete(java.lang.String tab)
- Create a DELETE statement on a given table
- Parameters:
tab
- the table name
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