Title: | DECmcc user notes file. Does not replace IPMT. |
Notice: | Use IPMT for problems. Newsletter location in note 6187 |
Moderator: | TAEC::BEROUD |
Created: | Mon Aug 21 1989 |
Last Modified: | Wed Jun 04 1997 |
Last Successful Update: | Fri Jun 06 1997 |
Number of topics: | 6497 |
Total number of notes: | 27359 |
The following is an EMA question. It is intended to be asked to the EMA architects and to MCC developement. Can the SET directive be used to set the elements of a set-valued attribute ? SET is intended here to be used as an atomic REMOVE and ADD as the following example shows. Assume attribute X is a set-valued attribute with the following current elements {1, 5, 7}. can SET be used to "remove" all current elements and "add" elements (2, 3) in one operation like this: SET entity foo X = (2,3) and the X will only have elements {2, 3} after completion ? or do we have to do the two explicit directives: REMOVE entity foo X = (1, 5, 7) ADD entity foo X = (2, 3) Thanks in advance, Phil
T.R | Title | User | Personal Name | Date | Lines |
---|---|---|---|---|---|
467.1 | TOOK::STRUTT | Colin Strutt | Tue Nov 13 1990 17:36 | 23 | |
Mark Sylor needs to comment on the applicability of the v1.0 Entity Model. However, OSI CMIS/P (and hence, I presume, v2.0 of the Entity Model) permits one to replace the value of an attribute, even if it is a multi-valued attribute. Hence, your example seems valid, and what's more, quite reasonable. Colin ------------------------------ Some additional comments: (1) I see nothing in the v1.0 Entity Model prohibiting SET applying to a multi-valued attribute. (2) OSI CMIS/P (actually, an addendum to the IS version of the standards) define ADD and REMOVE not as separate directives, but as modifications to the SET directive. Thus, for each attribute in a SET, you indicate whether you wish to modify the value by REPLACE ADD REMOVE SET TO DEFAULT | |||||
467.2 | It works | CAPN::SYLOR | Architect = Buzzword Generator | Wed Nov 14 1990 19:03 | 5 |
Yes, SET applies to set valued attributes. It replaces the value with the value provided in the command. That is the V1 Entity Model defined behavior. (no need to wait for V2 :-) Mark | |||||
467.3 | Thanks. | BYBLOS::TAMER | Thu Nov 15 1990 10:25 | 3 | |
re .0, .1 Thanks. |