public class UpdateStatement extends SQLStatement
Constructor and Description |
---|
UpdateStatement(Table t,
ArrayList<Column> colList,
ConditionalExpression where)
Constructs an UpdateStatement object involving the specified
table, list of columns, and conditional expression.
|
Modifier and Type | Method and Description |
---|---|
void |
execute()
Executes this SQL statement.
|
addColumn, addColumnVal, addTable, getColumn, getColumnVal, getTable, getWhere, getWhereColumn, numColumns, numColumnVals, numTables, numWhereColumns, toString
public UpdateStatement(Table t, ArrayList<Column> colList, ConditionalExpression where)
t
- the table in which the updates should occurcolList
- the list of columns for which updates are specifiedwhere
- the conditional expression from the WHERE clausepublic void execute() throws DatabaseException, DeadlockException
SQLStatement
execute
in class SQLStatement
DatabaseException
- if Berkeley DB encounters another problem
accessing an underlying database.DeadlockException
- if deadlock occurs while accessing
an underlying database.