OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

sdo message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: SDO-18 - Need better Java date-time handling


Hello All,

As discussed last week, one way of handling SDO-18 (http://www.osoa.org/jira/browse/SDO-18) would be to add native support for java.util.Calendar properties. 

The SDO Java spec already covers String/Calendar conversions:
  • 6.1.3 Conversion from a String-based SDO Date/Time type to Calendar
  • 6.1.4 Conversion from Calendar to a String-based SDO Date/Time type
The only change would be to allow java.util.Calendar to be set as an instance class:
  • 7.3.1 Dates - Hints that instance class can be used to specify other Date types
But the following section says that instance classes must have a constructor that takes a String
  • 7.2 Mapping of XSD to SDO Types and Properties
I believe the valid values of instance class should be the classes in section 3.5 plus classes that have a constructor that takes a String.  Once section 3.5 is updated this should cover off support for Calendar properties.
-Blaise


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]