← Prev in month ← Prev in thread
Next in thread → Next in month →

SDO-18 - Need better Java date-time handling

From
Blaise Doughan <>
Date
2010-06-14T17:36:05+00:00
ID
Thread
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.

  
3.5 Generation of SDO Types from Static SDOs

  
    
Add java.util.Calendar to the table covering compliance point JAV03050004. 
The SDO type corresponding to calendar would be Date?

      

  

-Blaise
← Prev in month ← Prev in thread
Next in thread → Next in month →