Class Delete
java.lang.Object
org.castor.cpa.persistence.sql.query.Delete
- All Implemented Interfaces:
QueryObject
Class to generate SQL delete query statements.
Note: Be aware that the SQL statement will be invalid for empty compound conditions.
Note: Be aware that the SQL statement will be invalid for empty compound conditions.
- Version:
- $Revision$ $Date: 2006-04-25 15:08:23 -0600 (Tue, 25 Apr 2006) $
- Author:
- Ahmad Hassan, Ralf Joachim
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAccept method to handle incoming visitors.Get condition that specifies which records to delete.Get method returningQualifiercurrently set.voidsetCondition(Condition condition) Set condition that specifies which records to delete.toString()Method constructing query string.
-
Constructor Details
-
Delete
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 Details
-
getCondition
Get condition that specifies which records to delete.- Returns:
- Condition that specifies which records to delete.
-
setCondition
Set condition that specifies which records to delete.- Parameters:
condition- Condition that specifies which records to delete.
-
getQualifier
Get method returningQualifiercurrently set.- Returns:
- Qualifier currently set.
-
accept
Accept method to handle incoming visitors.- Specified by:
acceptin interfaceQueryObject- Parameters:
visitor- Visitor to be handled.
-
toString
Method constructing query string.
-