|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ca.spaz.sql.SQLStatement ca.spaz.sql.SQLSelectableStatement ca.spaz.sql.SQLDelete
public class SQLDelete
Conveniently produces simple SQL DELETE statements
Field Summary |
---|
Fields inherited from class ca.spaz.sql.SQLSelectableStatement |
---|
EQ, GT, LT |
Fields inherited from class ca.spaz.sql.SQLStatement |
---|
table |
Constructor Summary | |
---|---|
SQLDelete(java.lang.String tableName)
Create a new SQLUpdate command for the given table |
Method Summary | |
---|---|
protected void |
doExecute(java.sql.Connection con)
Overrides execute() and calls executeUpdate() |
protected java.lang.String |
getQueryString()
Generate the SQL string for an DELETE command. |
Methods inherited from class ca.spaz.sql.SQLSelectableStatement |
---|
addWhere, addWhere, addWhere, addWhere, addWhere, addWhere, addWhere, addWhere, addWhereLike, getWhere |
Methods inherited from class ca.spaz.sql.SQLStatement |
---|
doExecuteQuery, execute, executeQuery, getTableName, isExecuteSupported, isQuerySupported, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SQLDelete(java.lang.String tableName)
tableName
- the name of the table to update onMethod Detail |
---|
protected void doExecute(java.sql.Connection con) throws java.sql.SQLException
doExecute
in class SQLStatement
java.sql.SQLException
protected java.lang.String getQueryString()
getQueryString
in class SQLStatement
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |