Method invocation for persistent objects with dynamic multikeys
First Claim
1. A method comprising:
- receiving information associated with a non-persistent object instance, the non-persistent object instance comprising;
a persistent field having a first value;
a mutable primary key used to access a relational database, the mutable primary key comprising data that uniquely identifies the non-persistent object instance, the data having a mutable value that can change during a life of the non-persistent object instance; and
a configuration to mirror the first value to the relational database via a first persistent object instance and a second persistent object instance, wherein the first persistent object instance comprises a first immutable primary key associated with the mutable primary key and a foreign key, and wherein the second persistent object instance comprises a second immutable key, associated with the foreign key, and a second value that mirrors the first value and further is mirrored to the relational database;
accessing, based on the information, the relational database, to yield relational database information; and
adding an alias key to the non-persistent object instance based on the relational database information, wherein both the alias key and the mutable primary key can be used to access the relational database, and wherein the alias key and the mutable primary key are distinct types of identifiers of the non-persistent object instance.
25 Assignments
0 Petitions
Accused Products
Abstract
A mechanism is disclosed that enables the invocation of methods of object instances that have persistent data and a mutable key. A mutable key capability is advantageous in a variety of applications, such as monitoring a set of users and their login status on a plurality of media servers (e.g., an email server, an instant messaging server, a voice mail server, a video server, an audio-conferencing server, etc.). The methods that can be invoked include get methods, set methods, unset methods, finder methods, destructors, and business methods. Implementations based on the Enterprise JavaBean specification are disclosed for three illustrative embodiments of the present invention. The illustrative embodiments of the present invention can also be implemented in accordance with object persistence mechanisms other than Enterprise JavaBeans.
-
Citations
16 Claims
-
1. A method comprising:
-
receiving information associated with a non-persistent object instance, the non-persistent object instance comprising; a persistent field having a first value; a mutable primary key used to access a relational database, the mutable primary key comprising data that uniquely identifies the non-persistent object instance, the data having a mutable value that can change during a life of the non-persistent object instance; and a configuration to mirror the first value to the relational database via a first persistent object instance and a second persistent object instance, wherein the first persistent object instance comprises a first immutable primary key associated with the mutable primary key and a foreign key, and wherein the second persistent object instance comprises a second immutable key, associated with the foreign key, and a second value that mirrors the first value and further is mirrored to the relational database; accessing, based on the information, the relational database, to yield relational database information; and adding an alias key to the non-persistent object instance based on the relational database information, wherein both the alias key and the mutable primary key can be used to access the relational database, and wherein the alias key and the mutable primary key are distinct types of identifiers of the non-persistent object instance. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. A system comprising:
-
a processor; and a non-transitory computer-readable storage medium having stored therein instructions which, when executed by the processor, cause the processor to perform operations comprising; receiving information associated with an object, the object generated by a program and defined by an object class, the object comprising; a persistent field having a first value; a mutable primary key used to access a relational database, the mutable primary key comprising data that uniquely identifies the object, the data having a mutable value that can change during a life of the object; and a configuration to mirror the first value to the relational database via a first persistent object instance and a second persistent object instance, wherein the first persistent object instance comprises a first immutable primary key associated with the mutable primary key and a foreign key, and wherein the second persistent object instance comprises a second immutable key, associated with the foreign key, and a second value configured to mirror the first value and further configured to be mirrored to the relational database; accessing, based on the information, the relational database, to yield relational database information; and adding an alias key to the object based on the relational database information, wherein both the alias key and the mutable primary key can be used to access the relational database, and wherein the alias key and the mutable primary key are distinct types of identifiers of the object. - View Dependent Claims (9, 10, 11, 12, 13)
-
-
14. A device comprising:
-
a processor; and a non-transitory computer-readable storage medium having stored therein instructions which, when executed by the processor, cause the processor to perform operations comprising; receiving information associated with an object, the object generated by a program and defined by an object class, the object comprising; a persistent field having a first value; a mutable primary key used to access a relational database, the mutable primary key comprising data that uniquely identifies the object, the data having a mutable value that can change during a life of the object; and a configuration to mirror the first value to the relational database via a first persistent object instance and a second persistent object instance, wherein the first persistent object instance comprises a first immutable primary key associated with the mutable primary key and a foreign key, and wherein the second persistent object instance comprises a second immutable key, associated with the foreign key, and a second value configured to mirror the first value and further configured to be mirrored to the relational database; accessing, based on the information, the relational database, to yield relational database information; and adding an alias key to the object based on the relational database information, wherein both the alias key and the mutable primary key can be used to access the relational database, and wherein the alias key and the mutable primary key are distinct types of identifiers of the object. - View Dependent Claims (15, 16)
-
Specification