Scalable Database Server, HiRDB Version 8 UAP Development Guide

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

16.8.2 setBlockUpdate

(a) Function

setBlockUpdate specifies whether or not multiple parameters are to be processed at one time when the ? parameter is used to update databases.

(b) Format
 
public void setBlockUpdate(boolean Mode)
 
(c) Arguments

boolean Mode
Specifies whether or not multiple parameter sets are to be processed at one time. When this argument is omitted, false is assumed.
true
Processes multiple parameter sets at one time.
false
Processes one parameter set at a time.*
* During database connection, if BLOCK_UPDATE=TRUE is specified in the argument of the getConnection method of the DriverManager class, the default for this function is true. Also, when HiRDB_for_Java_BLOCK_UPDATE=TRUE is specified in the system property, the default for this function is true.
(d) Return value

None.

(e) Functional detail

This function sets whether or not multiple parameter sets are to be processed at one time during database updating using the ? parameter (INSERT, UPDATE, or DELETE).

Whether or not the parameter sets are actually processed at one time depends on the method for using the facilities using arrays. For details about how to use the facilities using arrays, see 4.8 Facilities using arrays.

(f) Exception

None.

(g) Notes

For details about how to process multiple lines of ? parameters in batch mode, see Table 16-3 Information to be specified for Properties info and 16.3.2 Batch updating.