org.castor.cpa.persistence.sql.query
Class Delete

java.lang.Object
  extended by org.castor.cpa.persistence.sql.query.Delete
All Implemented Interfaces:
QueryObject

public final class Delete
extends java.lang.Object
implements QueryObject

Class to generate SQL delete query statements.
Note: Be aware that the SQL statement will be invalid for empty compound conditions.

Version:
$Revision: 8994 $ $Date: 2011-08-02 01:40:59 +0200 (Di, 02 Aug 2011) $
Author:
Ahmad Hassan, Ralf Joachim

Constructor Summary
Delete(java.lang.String name)
          Construct a SQL delete statement that deletes records of the table with given name.
 
Method Summary
 void accept(Visitor visitor)
          Accept method to handle incoming visitors.
 Condition getCondition()
          Get condition that specifies which records to delete.
 Qualifier getQualifier()
          Get method returning Qualifier currently set.
 void setCondition(Condition condition)
          Set condition that specifies which records to delete.
 java.lang.String toString()
          Method constructing query string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Delete

public Delete(java.lang.String name)
Construct a SQL delete statement that deletes records of the table with given name.

Parameters:
name - Name of the table to delete records of.
Method Detail

getCondition

public Condition getCondition()
Get condition that specifies which records to delete.

Returns:
Condition that specifies which records to delete.

setCondition

public void setCondition(Condition condition)
Set condition that specifies which records to delete.

Parameters:
condition - Condition that specifies which records to delete.

getQualifier

public Qualifier getQualifier()
Get method returning Qualifier currently set.

Returns:
Qualifier currently set.

accept

public void accept(Visitor visitor)
Accept method to handle incoming visitors.

Specified by:
accept in interface QueryObject
Parameters:
visitor - Visitor to be handled.

toString

public java.lang.String toString()
Method constructing query string.

Overrides:
toString in class java.lang.Object
Returns:
Constructed query string.


Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com