Uploaded image for project: 'Tuscany'
  1. Tuscany
  2. TUSCANY-1186

Sequenced type of DataObject returns 'null' from getSequence() method, it should return empty Sequence object

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Invalid
    • Java-SDO-beta1
    • Java-SDO-beta1
    • None
    • n/a

    Description

      The SDO for Java 2.1 spec states this about the getSequence() behavior in section 3.1.1:

      3. Sequenced. A DataObject is similar to a JavaBean plus it has order within and
      across Properties. In XML this is equivalent to a DOM. When using XML, a
      Sequence (see Sequence) represents the order of all the XML elements in the
      DataObject. Values are available through get(property) but order across Properties
      is maintained through the Sequence interface. getSequence() returns a Sequence
      of the XML elements for the case of XML. XML Attributes do not have the
      concept of order and are accessed through get(property).

      Currently, the code is returning a null, rather than an empty Sequence object. I'll attach a sample application to demonstrate the problem.

      Attachments

        1. api_test.xsd
          3 kB
          David T. Adcox
        2. Test1186.jar
          37 kB
          David T. Adcox

        Activity

          People

            Unassigned Unassigned
            dtadcox David T. Adcox
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: