Flexible storage of XML collections within an object-relational database
First Claim
Patent Images
1. A method used for managing XML data in a database system, comprising the steps of:
- a database server receiving a XML schema;
wherein said XML schema includes a plurality of XML schema declarations, wherein a particular declaration of said plurality of XML schema declarations defines a particular collection element;
based on said particular declaration of said plurality of XML schema declarations that defines said particular collection element, determining a database representation for storing said particular collection element in a database of the database server;
said database server making a certain determination of whether to store the particular collection element as an in-line VARRAY column or an out-of-line VARRAY column based on one or more factors, wherein said one or more factors includes a database type of the database representation determined for storing the particular collection element;
wherein the one or more factors are based on forms of VARRAY storage supported by said database server for the database type; and
said database server generating mapping data that maps said particular collection element to a form of VARRAY storage determined by said certain determination.
1 Assignment
0 Petitions
Accused Products
Abstract
A database server determines, on an element-level of granularity, what form of VARRAY storage to map collections of elements defined by a XML schema. A collection element may be mapped to an in-line VARRAY or an out-of-line VARRAY. The determination may based on a variety of factors, including the database type mapped to the collection element, database limitations that limit the form storage for certain database types, and annotations (“mapping annotations”) embedded within that XML schema that specifying a database type for database representation of a collection element or a form of VARRAY storage.
-
Citations
14 Claims
-
1. A method used for managing XML data in a database system, comprising the steps of:
-
a database server receiving a XML schema; wherein said XML schema includes a plurality of XML schema declarations, wherein a particular declaration of said plurality of XML schema declarations defines a particular collection element; based on said particular declaration of said plurality of XML schema declarations that defines said particular collection element, determining a database representation for storing said particular collection element in a database of the database server; said database server making a certain determination of whether to store the particular collection element as an in-line VARRAY column or an out-of-line VARRAY column based on one or more factors, wherein said one or more factors includes a database type of the database representation determined for storing the particular collection element; wherein the one or more factors are based on forms of VARRAY storage supported by said database server for the database type; and said database server generating mapping data that maps said particular collection element to a form of VARRAY storage determined by said certain determination. - View Dependent Claims (2, 3, 4, 5)
-
-
6. A computer-implemented method for mapping a database representation in a database to XML elements defined by a XML schema, comprising the steps of:
-
a database server evaluating said XML schema, wherein said XML schema includes a plurality of XML schema declarations, each declaration of said plurality of XML schema declarations defining a respective collection element; and wherein said evaluation includes, for said each declaration of said plurality of XML schema declarations; making a determination specific to said each declaration of whether to store the respective collection element as an in-line VARRAY or an out-of-line VARRAY based on a database type of a database representation of the respective collection element defined by said each declaration, and said database server generating mapping data that, for each declaration of said plurality of XML schema declarations; maps the respective collection element defined by said each declaration to a VARRAY column of a table in said database, and indicates whether the VARRAY column mapped to the respective collection element defined by said each declaration is stored in-line or out-of-line. - View Dependent Claims (7)
-
-
8. One or more non-transitory computer-readable storage media storing sequences of instructions, which when executed by one or more processors, cause:
-
a database server receiving a XML schema; wherein said XML schema includes a plurality of XML schema declarations, wherein a particular declaration of said plurality of XML schema declarations defines a particular collection element; based on said particular declaration of said plurality of XML schema declarations that defines said particular collection element, determining a database representation for storing said particular collection element in a database of the database server; said database server making a certain determination of whether to store the particular collection element as an in-line VARRAY column or an out-of-line VARRAY column based on one or more factors, wherein said one or more factors includes a database type of the database representation determined for storing the particular collection element; wherein the one or more factors are based on forms of VARRAY storage supported by said database server for the database type; and said database server generating mapping data that maps said particular collection element to a form of VARRAY storage determined by said certain determination. - View Dependent Claims (9, 10, 11, 12)
-
-
13. One or more non-transitory computer-readable storage media storing sequences instructions for mapping a database representation in a database to XML elements defined by a XML schema, said sequences of instructions, which when executed by one or more processors, cause:
-
a database server evaluating said XML schema, wherein said XML schema includes a plurality of XML schema declarations, each declaration of said plurality of XML schema declarations defining a respective collection element; and wherein said evaluation includes, for said each declaration of said plurality of XML schema declarations; making a determination specific to said each declaration of whether to store the respective collection element as an in-line VARRAY or an out-of-line VARRAY based on a database type of a database representation of the respective collection element defined by said each declaration, and said database server generating mapping data that, for each declaration of said plurality of XML schema declarations; maps the respective collection element defined by said each declaration to a VARRAY column of a table in said database, and indicates whether the VARRAY column mapped to the respective collection element defined by said each declaration is stored in-line or out-of-line. - View Dependent Claims (14)
-
Specification