sdo message
[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]
| [List Home]
Subject: Re: [sdo] ISSUE 167: Define type of on-the-fly property in cases wherelist elements are not of the same type
- From: Frank Budinsky <frankb@ca.ibm.com>
- To: "Barack, Ron" <ron.barack@sap.com>
- Date: Mon, 9 Nov 2009 14:19:49 -0500
Proposal:
In Section 4.1.9 of Core Spec, replace this:
When deriving a property type from a value that is an instance of DataObject, an SDO implementation MUST create a property with the same type as the DataObject (returned by DataObject.getType()). [COR04010907] If the value is not a DataObject, an SDO implementation MUST create a property with a DataType whose Type is compatible with the value. [COR04010904] Compatibility is based on the mapping tables shown in the section Data Types. For java.lang.String, the SDO type “String” is used.
with this:
When deriving a property type from a value that is an instance of DataObject or a List containing DataObject's, an SDO implementation MUST create a property of type {http://docs.oasis-open.org/ns/opencsa/sdo/200812}DataObject. [COR04010907] If the value is not a DataObject or List of DataObjects, an SDO implementation MUST create a DataType property of type {http://docs.oasis-open.org/ns/opencsa/sdo/200812}Object. [COR04010904] Passing a List value containing a mixture of DataObject's and non DataObject's is an error case and will produce implementation dependent results.
Also, can we remove section 2.1.2 of the Java spec?
Frank.
"Barack, Ron" ---10/27/2009 07:18:09 AM---http://www.osoa.org/jira/browse/SDO-167 Raised by Blaise in discussion over the Java Spec:
From: |
"Barack, Ron" <ron.barack@sap.com> |
To: |
"sdo@lists.oasis-open.org" <sdo@lists.oasis-open.org> |
Date: |
10/27/2009 07:18 AM |
Subject: |
[sdo] ISSUE 167: Define type of on-the-fly property in cases where list elements are not of the same type |
http://www.osoa.org/jira/browse/SDO-167
Raised by Blaise in discussion over the Java Spec:
Section 2.1.2 - Open Content DataObject Properties
"the property type is derived from the Java class of the value, or List of values, being set. If the value is an instance of DataObject, a Java Implementation of SDO MUST create the property using the type of the DataObject (returned by DataObject.getType()). [JAV02010201]."
The above compliance point does not cover what happens if the List of values contains objects from the same inheritance hierarchy. Is the type based on DataObject.getType() from the first item in the list, or the lowest super class common to all DataObjects in the list.
-------
This seems trivial, but we'd need SDO-116 to solve it if there is no common root type.
[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]
| [List Home]