The commonj.sdo/Object type is an SDO data type. Data types hold simple values that can be serialized as strings (i.e., they are simple values in the XML structure). Because the instanceClass of commonj.sdo/Object is java.lang.Object, the base class of everything in Java, the API lets you set a commonj.sdo/Object property to any value, including HashMap, but it is only intended to be used for values that can be converted to and from string. SDO uses toString() to convert to string and a string constructor or valueOf function (for example, Integer.valueOf("10")) to convert from string, HashMap doesn't have a "from string" kind of function, so it can't be used as a data type value.
Frank. "Andrey Utkin" <[EMAIL PROTECTED]> wrote on 11/06/2008 05:31:47 PM: > Hi all, > > I have a question about commonj.sdo/Object type. I define open > content property of this type and assign HashMap as value. But get() > returns String instead of HashMap (HashMap.toString()). Is it right > behavior? As I see in specification (8.1), commonj.sdo/Object data > type should use java.lang.Object instance calss. I don`t find any > statements that commonj.sdo/Object should be converted to String... > Could you please clarify it. > > Thanks.