Object-level conflict detection in an object-relational database system
First Claim
Patent Images
1. A method of conducting conflict detection and updating an object in an object-relational database, the method including steps of:
- accessing a class-table map that relates each field of the object to a corresponding column of a table in a database;
conducting conflict detection by checking that database data corresponding to each field of the object is unchanged during execution of the method, wherein the step of checking is done using optimistic concurrency conflict detection; and
selectively updating the object with updated data corresponding to at least one field in the corresponding column of the table after the step of checking.
2 Assignments
0 Petitions
Accused Products
Abstract
Object level conflict detection is provided. In an optimistic concurrency embodiment, when an object is to be updated, the database system is checked to determine whether any data related to fields of the object have changed since the object was read. This can be accomplished by storing a copy of the data when the initial object read function is performed and subsequently comparing the initial copy with the database data as it stands when the update is to be performed.
18 Citations
11 Claims
-
1. A method of conducting conflict detection and updating an object in an object-relational database, the method including steps of:
-
accessing a class-table map that relates each field of the object to a corresponding column of a table in a database; conducting conflict detection by checking that database data corresponding to each field of the object is unchanged during execution of the method, wherein the step of checking is done using optimistic concurrency conflict detection; and selectively updating the object with updated data corresponding to at least one field in the corresponding column of the table after the step of checking. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9)
-
-
10. An object-relational database system including a component for conducting conflict detection, wherein the system comprises
a relational database; -
a class map that relates a first field of an object to at least a column in a first table within the relational database, and a second field of the object to a column in a second table within the relational database; a data access system adapted to receive a request to update the object, wherein the class map is consulted to identify at least one of the column in the first table and the column in the second table; and a conflict detection component adapted to ensure that data in the relational database is unchanged during the period between receiving the request, and updating the object.
-
-
11. A method of providing conflict detection in an object-relational database, the method comprising:
-
accessing a class-table map that relates each field of an object to a column of a table in a database; checking to determine if database data corresponding to any field of the object has changed during execution of the method, wherein the step of checking is done using optimistic concurrency conflict detection; and providing a conflict indication if database data corresponding to any field of tile object has changed during execution of the method.
-
Specification