|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.edg.info.sqlutil.parsql.UpdateStatement
UpdateStatement: an SQL UPDATE statement.
Constructor Summary | |
UpdateStatement(java.lang.String tab)
Create an UPDATE statement on a given table. |
Method Summary | |
void |
addSet(java.util.Hashtable t)
Insert a SET clause in the UPDATE statement |
void |
addWhere(ExpSelConst w)
Insert a WHERE clause in the UPDATE statement |
ExpSelConst |
getColumnUpdate(java.lang.String col)
Get the SQL expression that specifies a given column's update value. |
java.util.Hashtable |
getSet()
Get the whole SET... |
java.lang.String |
getTable()
DOCUMENT ME! |
ExpSelConst |
getWhere()
Get the WHERE clause of this UPDATE statement. |
java.lang.String |
toString()
DOCUMENT ME! |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public UpdateStatement(java.lang.String tab)
tab
- DOCUMENT ME!Method Detail |
public ExpSelConst getColumnUpdate(java.lang.String col)
col
- The column name.
public java.util.Hashtable getSet()
public java.lang.String getTable()
public ExpSelConst getWhere()
public void addSet(java.util.Hashtable t)
t
- A Hashtable, where keys are column names (the columns to
update), and values are ExpSelConst objects (the column values).
For example, the values may be Constant objects (like "Smith")
or more complex SQL Expressions.public void addWhere(ExpSelConst w)
w
- An SQL Expression compatible with a WHERE... clause.public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |