System and method for storing and retrieving XML data encapsulated as an object in a database store
First Claim
1. In a system in which an object that is an instance of a user defined type can be persisted in a database store, wherein a definition of the user defined type is provided as a class in managed code and comprises one or more fields and behaviors, each field having a respective data type, a method comprising:
- defining a class in managed code that represents an XML data type for a field of a user defined type;
defining a field within the managed code class definition of a user defined type as an instance of the managed code class that represents the XML data type; and
persisting an instance of the user defined type within the database store, whereby a field of the persisted instance can contain XML data.
3 Assignments
0 Petitions
Accused Products
Abstract
A system and method are provided for modeling structured, semi-structured, and unstructured data all within a single instance of a user defined type (UDT) within a database store. In particular, the XML data model is extended to fields of a UDT. As a result, the properties of the XML data model—such as document order and document structure—can be preserved within instances of a UDT. Moreover, code representing object behavior (i.e., methods that can be invoked on an object in managed code) can be added to the UDT to operate on an XML field, as well as non-XML fields of the UDT. This enables a framework for adding business logic to XML data. The content model of the XML data can be optionally described using XML schema documents associated with the XML fields of the UDT.
-
Citations
17 Claims
-
1. In a system in which an object that is an instance of a user defined type can be persisted in a database store, wherein a definition of the user defined type is provided as a class in managed code and comprises one or more fields and behaviors, each field having a respective data type, a method comprising:
-
defining a class in managed code that represents an XML data type for a field of a user defined type;
defining a field within the managed code class definition of a user defined type as an instance of the managed code class that represents the XML data type; and
persisting an instance of the user defined type within the database store, whereby a field of the persisted instance can contain XML data. - View Dependent Claims (2, 3, 4, 5, 6, 13)
-
-
7. A system comprising:
-
a runtime that provides managed code execution, the runtime comprising;
a class in managed code that represents an XML data type; and
a class in managed code that defines a user defined type for storage of objects of that type within a database store, the class definition for the user defined type comprising one or more fields, each field having a respective data type and at least one of said fields being defined as an instance of the managed code class that represents the XML data type; and
a database store for storing an instance of the user defined type, whereby a field of the persisted instance can contain XML data. - View Dependent Claims (8, 9, 10, 11)
-
-
12. A computer readable medium having program code stored thereon for use in a system in which an object that is an instance of a user defined type can be persisted in a database store, said program code comprising:
-
a first class in managed code that represents an XML data type for a field of a user defined type;
a second class in managed code that defines a user defined type, the second class comprising one or more fields and behaviors, each field having a respective data type, at least one of the fields within the second class being defined as an instance of the first class, said program code, when executed on a computer, enabling the computer to persist an instance of the user defined type within the database store, wherein said at least one field of the persisted instance contains XML data. - View Dependent Claims (14, 15, 16, 17)
-
Specification