[
http://issues.apache.org/jira/browse/TUSCANY-97?page=comments#action_12451862 ]
Yang ZHONG commented on TUSCANY-97:
-----------------------------------
How about to check property.isReadOnly() within the following macros/functions
in DataObjectImpl.cpp?
setPrimitiveFromProperty
setPrimitiveFromPathUsingSDOString
setPrimitive
setCharsFromPath
setCharsFromProperty
setCharsFromPathUsingSDOString
setCharsBasic
setCString(const SDOString& path, const SDOString& value)
setCString(unsigned int propertyIndex, const SDOString& value)
setDataObject(const Property& prop, DataObjectPtr value)
setDataObject(const SDOString& path, DataObjectPtr value)
setNull(const SDOString& path)
setNull(const unsigned int propertyIndex)
setUserData(const Property& property, void* value)
setUserData(const SDOString& path, void* value)
setUserData(unsigned int propertyIndex, void* value)
unset(const Property& p)
unset(const SDOString& path)
getList(const Property& p)
detach()
If that's fine, SdoUnsupportedOperationException will be thrown if the property
to change is read-only.
On the other hand, how do we enable programs such as deserialization to
initialize read-only properties?
> 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]