|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectca.spaz.sql.SQLStatement
ca.spaz.sql.SQLSelectableStatement
ca.spaz.sql.SQLUpdate
public class SQLUpdate
Simplifies constructing SQL Update Queries.
| Field Summary |
|---|
| Fields inherited from class ca.spaz.sql.SQLSelectableStatement |
|---|
EQ, GT, LT |
| Fields inherited from class ca.spaz.sql.SQLStatement |
|---|
table |
| Constructor Summary | |
|---|---|
SQLUpdate(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() |
SQLColumnSet |
getColumns()
Retrieve the cols from the SQLInsert |
protected java.lang.String |
getQueryString()
Generate the SQL string for an UPDATE 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 SQLUpdate(java.lang.String tableName)
tableName - the name of the table to update on| Method Detail |
|---|
protected void doExecute(java.sql.Connection con)
throws java.sql.SQLException
doExecute in class SQLStatementjava.sql.SQLExceptionprotected java.lang.String getQueryString()
getQueryString in class SQLStatementpublic SQLColumnSet getColumns()
cols from the SQLInsert
getColumns in interface Columns
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||