Hitachi

Hitachi Advanced Database Application Development Guide


8.4.5 executeLargeUpdate()

Organization of this subsection

(1) Function

This method executes an SQL statement (other than a retrieval SQL statement) that has undergone preprocessing, and returns the number of updated rows as a long value.

If the number of updated rows might exceed Integer.MAX_VALUE, use the executeLargeUpdate() method instead of executeUpdate(). If you use the executeUpdate() method, it will return 0 if the number of updated rows exceeds Integer.MAX_VALUE.

(2) Format

public synchronized long executeLargeUpdate() throws SQLException

(3) Arguments

None.

(4) Return value

If an INSERT, UPDATE, or DELETE statement was executed, the method returns the number of updated rows as long data. If any other SQL statement was executed, the method returns 0.

(5) Exceptions

For details about exceptions, see (5) Exceptions in 8.4.7 executeUpdate().