getUpdateCount()

Returns the number of rows affected by the last write operation to the relationship database.

Syntax

int getUpdateCount()
 

Parameters

None.

Return values

Returns an int representing the number of rows affected by the last write operation.

Exceptions

DtpConnectionException - If a database error occurs.

Notes

Before using this method, you must create a DtpConnection object with the getRelConnection() method from the BaseDLM class.

This method is useful after you send an UPDATE or INSERT statement on the relationship database and you want to determine the number of rows that the SQL statement has affected.

See also

executeSQL(), getRelConnection()

Copyright IBM Corp. 2003