Issue 10724: set_query and set_parameters operation (data-distribution-rtf) Source: PrismTech (Mr. Erik Hendriks, erik.hendriks(at)prismtech.com) Nature: Revision Severity: Summary: Problem: The set_query and set_parameters operation both have a return value of type boolean indicating success or not and an exception which is raised if an error was detected. Obviously one of the two is not neccesary, if an exception is raised then the return value is irrelevant and vice versa. So a choice needs to be made for one or the other. We propose to keep the exception as that is in line with other similar operation (set_content_filter on the ObjectHome for example). Also update the IDL description on page 3-52 in section 3.2.1.2. Solution: Change the return value of the set_query and set_parameter operations from boolean to void. And replace the following text: o set the value of the expression and its parameters (set_query); a TRUE return value indicates that they have been successfully changed. o set the values of the parameters (set_parameters). The number of parameters must fit with the values required by the expression. A TRUE return value indicates that they have been successfully changed. With: o set the value of the expression and its parameters (set_query). If the expression is not valid or if it's parameters do not match the number of parameters in the expression then a SQLError is raised. o set the values of the parameters (set_parameters). The number of parameters must fit with the values required by the expression, else a SQLError is raised. On page 3-52 in section 3.2.1.2 IDL description replace: boolean set_query ( in string expression, in StringSeq parameters) raises (SQLError); boolean set_parameters ( in StringSeq parameters ) raises (SQLError); With: void set_query (in string expression, in StringSeq parameters) raises (SQLError); void set_parameters ( in StringSeq parameters ) raises (SQLError); Resolution: Revised Text: Actions taken: February 13, 2007: received issue Discussion: Remove return value for the set_query and set_parameters operation of the QueryCriterion. End of Annotations:===== iler: QUALCOMM Windows Eudora Version 7.0.1.0 Date: Tue, 13 Feb 2007 17:24:02 -0500 To: issues@omg.org, data-distribution-rtf@omg.org From: Juergen Boldt Subject: issue 10724 -- DDS RTF issue X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at omg.org This is issue # 10724 From: "Erik Hendriks" set_query and set_parameters operation Remove return value for the set_query and set_parameters operation of the QueryCriterion. Problem: The set_query and set_parameters operation both have a return value of type boolean indicating success or not and an exception which is raised if an error was detected. Obviously one of the two is not neccesary, if an exception is raised then the return value is irrelevant and vice versa. So a choice needs to be made for one or the other. We propose to keep the exception as that is in line with other similar operation (set_content_filter on the ObjectHome for example). Also update the IDL description on page 3-52 in section 3.2.1.2. Solution: Change the return value of the set_query and set_parameter operations from boolean to void. And replace the following text: o set the value of the expression and its parameters (set_query); a TRUE return value indicates that they have been successfully changed. o set the values of the parameters (set_parameters). The number of parameters must fit with the values required by the expression. A TRUE return value indicates that they have been successfully changed. With: o set the value of the expression and its parameters (set_query). If the expression is not valid or if it's parameters do not match the number of parameters in the expression then a SQLError is raised. o set the values of the parameters (set_parameters). The number of parameters must fit with the values required by the expression, else a SQLError is raised. On page 3-52 in section 3.2.1.2 IDL description replace: boolean set_query ( in string expression, in StringSeq parameters) raises (SQLError); boolean set_parameters ( in StringSeq parameters ) raises (SQLError); With: void set_query (in string expression, in StringSeq parameters) raises (SQLError); void set_parameters ( in StringSeq parameters ) raises (SQLError); Juergen Boldt Director, Member Services Object Management Group 140 Kendrick St Building A Suite 300 Needham, MA 02494 USA tel: +1 781 444 0404 x 132 fax: +1 781 444 0320 email: juergen@omg.org www.omg.org