|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.castor.cpa.persistence.sql.query.QueryObject
org.castor.cpa.persistence.sql.query.Delete
public final class Delete
Class to generate SQL delete query statements.
Note: Be aware that the SQL statement will be invalid for empty compound conditions.
Constructor Summary | |
---|---|
Delete(java.lang.String name)
Construct a SQL delete statement that deletes records of the table with given name. |
Method Summary | |
---|---|
Condition |
getCondition()
Get condition that specifies which records to delete. |
void |
setCondition(Condition condition)
Set condition that specifies which records to delete. |
void |
toString(QueryContext ctx)
Append a string representation of the object to the given QueryContext. |
Methods inherited from class org.castor.cpa.persistence.sql.query.QueryObject |
---|
toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Delete(java.lang.String name)
name
- Name of the table to delete records of.Method Detail |
---|
public Condition getCondition()
public void setCondition(Condition condition)
condition
- Condition that specifies which records to delete.public void toString(QueryContext ctx)
QueryObject
toString
in class QueryObject
ctx
- QueryContext to append the string representation of the object to.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |