[ 
http://issues.apache.org/jira/browse/TUSCANY-97?page=comments#action_12451887 ] 
            
Geoff Winn commented on TUSCANY-97:
-----------------------------------

I've just reviewed what the spec has to say about readonly properties and it's 
this

bool isReadOnly() const

Returns true if values for this Property cannot be modified using the SDO APIs. 
Attempting to
set values of read-only properties will provoke an 
SDOUnsupportedOperationException.
Values of the property may change due to other factors such as services 
operating on data
objects.

So the whole point of readonly properties is that they _cannot_ be modified 
through the SDO API. They are set by services like a DAS.

I think what you suggest above is fine, but you will need to have two different 
routes into the set operations. When the call originates from the "public" SDO 
API then the readonly property is respected but when it comes from a DAS, or 
some other service, then it isn't. We probably need to discuss this a little 
more and I will confirm with the spec group about how it is supposed to work.

> Read only properties
> --------------------
>
>                 Key: TUSCANY-97
>                 URL: http://issues.apache.org/jira/browse/TUSCANY-97
>             Project: Tuscany
>          Issue Type: Task
>          Components: C++ SDO
>    Affects Versions: Cpp-current
>            Reporter: Ed Slattery
>            Priority: Trivial
>             Fix For: Cpp-current
>
>
> Read-only properties are not fully supported, and should be.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to