Nonstop Database, HiRDB Version 9 UAP Development Guide

[Contents][Index][Back][Next]

18.7.51 setBatchExceptionBehavior

(a) Function

Sets whether a JDBC standard-compliant update count is to be set as the return value of the getUpdateCounts method of java.sql.BatchUpdateException.

(b) Format
 
public synchronized void setBatchExceptionBehavior(boolean mode)
 
(c) Arguments

boolean mode
Specifies whether a JDBC standard-compliant update count is to be set as the return value of the getUpdateCounts method of java.sql.BatchUpdateException.
true: Set a JDBC standard-compliant update count.
false: Set a HiRDB-specific update count.
(d) Return value

None.
(e) Functional detail

Specifies whether a JDBC standard-compliant update count is to be set as the return value of the getUpdateCounts method of java.sql.BatchUpdateException. The default value applied when this method is not called is TRUE.

Specifying a value with this method is equivalent to specifying the HiRDB_for_Java_ BATCHEXCEPTION_BEHAVIOR property described in 18.2.2(2) User properties.

(f) Exceptions

None.