Scalable Database Server, HiRDB Version 8 UAP Development Guide

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

16.7 Specifying a value when using a repetition column as the ? parameter

This section explains how to specify a value when using a repetition column as the ? parameter.

To specify a value for the ? parameter, use the setObject method to specify an object in the class in which the Array interface was installed or a column object.

Organization of this section
(1) Specifying an object in the class in which the Array interface was installed
(2) Using the setObject method to specify an array object
(3) Relationship between repetition column elements and the object specified as the ? parameter
(4) Specifying a null value for an element in the middle of a repetition column

(1) Specifying an object in the class in which the Array interface was installed

(2) Using the setObject method to specify an array object

(3) Relationship between repetition column elements and the object specified as the ? parameter

The sequence of the array objects obtained by the Array.getArray() method from the objects in the class in which the Array interface was installed is the same as the sequence of the repetition columns. Consequently, the first element of the array object becomes the first element of the repetition column, and the second element of the array object becomes the second element of the repetition column.

The same also holds true for the array objects specified by the setObject method. You can also specify an array object consisting of only one element.

(4) Specifying a null value for an element in the middle of a repetition column

Regardless of whether an object is in the class in which the Array interface was installed or an array object, if you specify a null value for an element in the middle of an element, the element of the applicable array becomes null. Therefore, to set a null value for the second element of a repetition column, specify a null value for the second element of the array object obtained by the Array.getArray() method from the objects in the class in which the Array interface was installed.

The same also holds true for the array objects specified by the setObject method.