Claims
- 1. A method for generating a hierarchical data stream, comprising:
receiving a query including at least one valid database statement used to retrieve at least one rowset from a database; processing the query to retrieve said at least one rowset from the database; and transforming a rowset of said at least one rowset into a datatype instance of the hierarchical language of said hierarchical data stream by mapping each row element of the rowset into an element of the hierarchical data stream.
- 2. A method according to claim 1, wherein said receiving includes receiving a query including at least one valid database statement used to retrieve at least one rowset from a database and at least one of a name option parameter, a root option parameter, a map option parameter, at least one namespace option parameter and a null option parameter.
- 3. A method according to claim 2, wherein said receiving includes receiving a query including at least one valid database statement used to retrieve at least one rowset from a database and a name option parameter, whereby said transforming includes overwriting a name of a row element.
- 4. A method according to claim 3, wherein if said name option parameter is specified to be a predetermined value, then said transforming includes dropping a tag of the row element and any contained attributes.
- 5. A method according to claim 2, wherein said receiving includes receiving a query including at least one valid database statement used to retrieve at least one rowset from a database and a root option parameter, whereby said mapping includes wrapping a plurality of row elements with a single element tag.
- 6. A method according to claim 2, wherein said receiving includes receiving a query including at least one valid database statement used to retrieve at least one rowset from a database and a map option parameter, whereby said transforming includes overwriting the row element mapping with a mapping that interprets names as paths.
- 7. A method according to claim 6, wherein said transforming includes overwriting the row element mapping with a mapping that interprets names as paths and said mapping includes mapping columns in the order in which the columns appear in the rowset to attributes or subelements by interpreting the column names as a path.
- 8. A method according to claim 2, wherein said receiving includes receiving a query including at least one valid database statement used to retrieve at least one rowset from a database and at least one namespace option parameter and said transforming includes associating a namespace to at least a portion of said hierarchical data stream.
- 9. A method according to claim 8, wherein said associating includes associating the namespace to the outermost element of the hierarchical data stream generated according to said transforming.
- 10. A method according to claim 8, wherein said associating includes associating the namespace to at least one top-level element of the hierarchical data stream generated according to said transforming, wherein if there is a plurality of top-level elements, the namespace is added to each of the plurality of top-level elements.
- 11. A method according to claim 8, wherein said receiving includes receiving a query including a first valid database statement used to retrieve at least one rowset from the database nested within a second valid database statement used to retrieve at least one rowset from the database, whereby said first valid database statement inherits all namespace option parameters associated with said second valid database statement and optionally, said first valid database statement is allowed to overwrite the namespace option parameters of said second valid database statement.
- 12. A method according to claim 2, wherein said receiving includes receiving a query including at least one valid database statement used to retrieve at least one rowset from a database and a null option parameter, whereby said transforming includes overwriting a default mapping of a NULL value during said transforming.
- 13. A method according to claim 12, whereby an “absent” value of said null option parameter specifies default behavior whereby a null value results in the absence of a row element's containing attribute or subelement, whereby an “xsinil” value of said null option parameter adds a namespace declaration for a schema instance namespace and whereby an “empty” value of said null option parameter represents a null value with an empty string as the value of the attribute or subelement of a row element.
- 14. A method according to claim 1, wherein said receiving includes receiving a query including a first valid database statement used to retrieve at least one rowset from the database nested within a second valid database statement used to retrieve at least one rowset from the database, whereby said first valid database statement has access to variables of the second valid database statement and said hierarchical data stream is a nested hierarchical data stream.
- 15. A method according to claim 1, wherein said receiving includes receiving a query formatted according to structured query language (SQL).
- 16. A method according to claim 1, wherein said transforming includes transforming a rowset of said at least one rowset into an eXtensible markup language (XML) datatype instance of by mapping each row element of the rowset into an element of the XML data stream.
- 17. A computer readable medium comprising computer executable instructions for performing the method of claim 1.
- 18. An application programming interface comprising computer executable instructions for performing the method of claim 1.
- 19. At least one application programming interface comprising computer executable modules having computing executable instructions, the modules including:
a transmission module for transmitting a query request, the query request including at least one valid database statement used to retrieve at least one rowset from a database; and a hierarchical data stream reception module for receiving a hierarchical data stream generated in response to the query request via transformation of at least one rowset retrieved pursuant to said query request into a datatype instance of the hierarchical language of the hierarchical data stream by mapping each row element of the rowset into an element of the hierarchical data stream.
- 20. An application programming interface according to claim 19, wherein said transmission module transmits a query request including at least one valid database statement used to retrieve at least one rowset from a database and at least one of a name option parameter, a root option parameter, a map option parameter, at least one namespace option parameter and a null option parameter.
- 21. An application programming interface according to claim 20, wherein said transmission module transmits a query request including at least one valid database statement used to retrieve at least one rowset from a database and a name option parameter, whereby said transformation includes a process of overwriting a name of a row element.
- 22. An application programming interface according to claim 20, wherein said transmission module transmits a query request including at least one valid database statement used to retrieve at least one rowset from a database and a root option parameter, whereby said transformation includes a process of wrapping a plurality of row elements with a single element tag.
- 23. An application programming interface according to claim 20, wherein said transmission module transmits a query request including at least one valid database statement used to retrieve at least one rowset from a database and a map option parameter, whereby said transformation includes a process of overwriting the row element mapping with a mapping that interprets names as paths.
- 24. An application programming interface according to claim 20, wherein said transmission module transmits a query request including at least one valid database statement used to retrieve at least one rowset from a database and at least one namespace option parameter, whereby said transformation includes a process of associating a namespace to at least a portion of said hierarchical data stream.
- 25. An application programming interface according to claim 20, wherein said transmission module transmits a query request including at least one valid database statement used to retrieve at least one rowset from a database and a null option parameter, whereby said transformation includes a process of overwriting a default mapping of a NULL value during said transforming.
- 26. An application programming interface according to claim 19, wherein said receiving includes receiving a query including a first valid database statement used to retrieve at least one rowset from the database nested within a second valid database statement used to retrieve at least one rowset from the database, whereby said first valid database statement has access to variables of the second valid database statement and said hierarchical data stream is a nested hierarchical data stream.
- 27. An application programming interface according to claim 19, wherein said transmission module transmits a query request formatted according to structured query language (SQL).
- 28. An application programming interface according to claim 19, wherein said hierarchical data stream reception module for receiving a hierarchical data stream receives an eXtensible markup language (XML) data stream.
- 29. At least one computing device comprising the transmission and reception modules of the application programming interface of claim 19.
- 30. A server for managing and accessing database information, including:
a first object that receives a query request; a second object that retrieves at least one rowset from a database based on at least one valid database statement in the query request; and a third object that generates a hierarchical data stream by transforming a rowset of said at least one rowset into a datatype instance of the hierarchical language of the hierarchical data stream by mapping each row element of the rowset into an element of the hierarchical data stream.
- 31. A server according to claim 30, wherein said second object retrieves at least one rowset based on at least one valid database statement and at least one of a name option parameter, a root option parameter, a map option parameter, at least one namespace option parameter and a null option parameter included in the query request.
- 32. A server according to claim 31, wherein said second object retrieves at least one rowset based on at least one valid database statement and a name option parameter, whereby said transforming performed by said third object includes overwriting a name of a row element.
- 33. A server according to claim 31, wherein said second object retrieves at least one rowset based on at least one valid database statement and a root option parameter, whereby said transforming performed by said third object includes wrapping a plurality of row elements with a single element tag.
- 34. A server according to claim 31, wherein said second object retrieves at least one rowset based on at least one valid database statement and a map option parameter, whereby said transforming performed by said third object includes overwriting the row element mapping with a mapping that interprets names as paths.
- 35. A server according to claim 31, wherein said second object retrieves at least one rowset based on at least one valid database statement and at least one namespace option parameter, whereby said transforming performed by said third object includes associating a namespace to at least a portion of said hierarchical data stream.
- 36. A server according to claim 31, wherein said second object retrieves at least one rowset based on at least one valid database statement and a null option parameter, whereby said transforming performed by said third object includes overwriting a default mapping of a null value.
- 37. A server according to claim 30, wherein said query request includes a first valid database statement used to retrieve at least one rowset from the database nested within a second valid database statement used to retrieve at least one rowset from the database, whereby said first valid database statement has access to variables of the second valid database statement and said third object generates a nested hierarchical data stream.
- 38. A server according to claim 30, wherein said first object receives a query request formatted according to structured query language (SQL).
- 39. A server according to claim 30, wherein said third object generates an eXtensible markup language (XML) data stream.
- 40. A server according to claim 30, further comprising a fourth object that transmits said hierarchical data stream to a destination.
- 41. A server according to claim 40, wherein said destination is specified by said query request received by said first object.
- 42. A computing device in a computing system for generating a hierarchical data stream, comprising:
means for receiving a query including at least one valid database statement used to retrieve at least one rowset from a database; means for processing the query to retrieve said at least one rowset from the database; and means for transforming a rowset of said at least one rowset into a datatype instance of the hierarchical language of said hierarchical data stream by mapping each row element of the rowset into an element of the hierarchical data stream.
- 43. A computing device according to claim 42, wherein said means for receiving includes means for receiving a query including at least one valid database statement used to retrieve at least one rowset from a database and a map option parameter, whereby said means for transforming overwrites the row element mapping with a mapping that interprets names as paths.
- 44. A computing device in a computing system for generating a hierarchical data stream, comprising:
means for transmitting a query request, the query request including at least one valid database statement used to retrieve at least one rowset from a database; and means for receiving a hierarchical data stream generated in response to the query request via transformation of at least one rowset retrieved pursuant to said query request into a datatype instance of the hierarchical language of the hierarchical data stream by mapping each row element of the rowset into an element of the hierarchical data stream.
- 45. A computing device according to claim 44, wherein said means for transmitting includes means for transmitting a query request including at least one valid database statement used to retrieve at least one rowset from a database and a map option parameter, whereby said transformation includes a process of overwriting the row element mapping with a mapping that interprets names as paths.
RELATED APPLICATION
[0001] This invention is a continuation-in-part application of commonly assigned co-pending U.S. patent appln. Ser. No. 09/528,078, filed Mar. 17, 2000, entitled “Transforming Query Results into Hierarchical Information.”
Continuation in Parts (1)
|
Number |
Date |
Country |
Parent |
09528078 |
Mar 2000 |
US |
Child |
10623369 |
Jul 2003 |
US |