[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference azur::mcc

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

467.0. "EMA Question: Can SET apply to a set-valued attribute" by BYBLOS::TAMER () Fri Nov 09 1990 11:13

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.RTitleUserPersonal
Name
DateLines
467.1TOOK::STRUTTColin StruttTue Nov 13 1990 17:3623
    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.2It worksCAPN::SYLORArchitect = Buzzword GeneratorWed Nov 14 1990 19:035
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.3Thanks.BYBLOS::TAMERThu Nov 15 1990 10:253
re .0, .1

Thanks.