org.edg.info.sqlutil.parsql
Class DeleteStatement

java.lang.Object
  extended byorg.edg.info.sqlutil.parsql.DeleteStatement
All Implemented Interfaces:
java.io.Serializable, Statement

public class DeleteStatement
extends java.lang.Object
implements Statement

A representation of an SQL DELETE statement. DELETE FROM table [WHERE Expression];

See Also:
Serialized Form

Constructor Summary
DeleteStatement(java.lang.String tableName)
          Create a DELETE statement on a given table.
 
Method Summary
 void addWhere(ExpSelConst where)
          Add a WHERE clause to the DELETE statement.
 java.lang.String getTableName()
           
 ExpSelConst getWhere()
          Returns the SQL WHERE clause from this DELETE statement.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DeleteStatement

public DeleteStatement(java.lang.String tableName)
Create a DELETE statement on a given table.

Parameters:
tableName - Table name
Method Detail

addWhere

public void addWhere(ExpSelConst where)
Add a WHERE clause to the DELETE statement.

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

getTableName

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

getWhere

public ExpSelConst getWhere()
Returns the SQL WHERE clause from this DELETE statement.

Returns:
The SQL Where clause of the DELETE statement (an SQL Expression or Subquery, compatible with an SQL WHERE clause). Can be null.

toString

public java.lang.String toString()