DataSourceUpdate¶
-
class
DataSourceUpdate
extends DataSourceProcess¶ DataSourceUpdate is a data source DAO process which handles a SQL update process.
Author: Hugo Y. K. Lam
Constructors¶
DataSourceUpdate¶
-
DataSourceUpdate
(DataSourceDAO dao, DataSourceTransaction transaction, String sql, Object[][] params)¶ Creates a new instance of DataSourceUpdate.
Parameters: - dao – the DAO to which this process correspond.
- transaction – the transaction for this process.
- sql – the SQL update statement.
- params – the parameter values used by the specified SQL statement. The number, format, and sequence of the parameter values should match the statement. null if there is no parameter for the statement and multiple sets if it is a batch update.
Methods¶
doTransaction¶
-
protected void
doTransaction
(DataSourceTransaction tx)¶ Executes the update and stores the result as an array of integers which indicates the update results.
Throws: - DAOException – if unable to execute the update.
See also:
hk.hku.cecid.piazza.commons.dao.ds.DataSourceProcess.doTransaction(DataSourceTransaction)