------- Additional comments from rad...@dev.java.net Fri May 16 21:46:24 +0000 2008 -------
This was discussed on the May-15 call.
One potential use-case was brought up: that of a user blindly (without checking
isSet() that is) setting character values obtained by calling get() on a
property of type Character to some other property. That could lead to SDO being
unable to save the target DataObject to XML because of the '\u0000' character.
8.1.6 Conversion between Character and String
The conversion from Character to String happens when calling getString() on a
property of type Character or setCharacter() on a property of type String; the
conversion from String to Character happens when calling getCharacter() on a
property of type String or setString() on a property of type Character.
A Character value maps to a String of length 1, whose first (and only) character
is that Character value. The character with the Unicode codepoint '0' maps to
the empty String. Strings with length > 1 can't be converted to Character. null
String can't be converted to Character.