System and method for eager relationship caching of entity beans
First Claim
Patent Images
1. A system for caching of entity beans in a server environment, comprising:
- an object relationship that defines a relationship between a plurality of object types, including a first object type and second object type;
a server that receives a request from a client to retrieve data from a database corresponding to a first object type and retrieving both first object type and second object type data from the database, as specified by said object relationship;
an object cache for temporary storage of first object type and second object type data; and
, wherein a request from a client to retrieve. database information corresponding to the second object type causes the server to retrieve second object type data directly from the cache, without making another call to the database.
2 Assignments
0 Petitions
Accused Products
Abstract
A system and method for increasing entity bean performance in an application server environment. The system reduces the need for multiple or unnecessary queries by formulating a join query for the related beans and applying this query to the database. When a request is made to a database to read or retrieve a set of EJB beans, related beans are simultaneously retrieved and stored in a cache. In this manner, when the client sends a request for any of these related beans, they can be supplied from the cache rather than making another call to the database.
44 Citations
18 Claims
-
1. A system for caching of entity beans in a server environment, comprising:
-
an object relationship that defines a relationship between a plurality of object types, including a first object type and second object type;
a server that receives a request from a client to retrieve data from a database corresponding to a first object type and retrieving both first object type and second object type data from the database, as specified by said object relationship;
an object cache for temporary storage of first object type and second object type data; and
,wherein a request from a client to retrieve. database information corresponding to the second object type causes the server to retrieve second object type data directly from the cache, without making another call to the database. - View Dependent Claims (2, 4, 5, 6)
-
-
3. The system of claim I wherein the object relationship is between a plurality of object types.
-
7. A method for caching of entity beans in a server environment, comprising the steps of:
-
defining an object relationship between a first object type and a second object type;
receiving a request from a client to retrieve data from a database corresponding to the first object type;
retrieving both first object type and second object type data from the database, as specified by said object relationship;
placing the first object type and second object type data in an object cache;
receiving a request from a client to retrieve database information corresponding to the second object type; and
,retrieving data corresponding to said second object type directly from said object cache, without making another call to the database. - View Dependent Claims (8, 9, 10, 11, 12)
-
-
13. A computer readable medium, including instruction stored thereon which when executed by a computer causes the computer to perform the steps of:
-
interpreting an object relationship between a first object type and a second object type;
receiving a request from a client to retrieve data from a database corresponding to the first object type;
retrieving both first object type and second object type data from the database, as specified by said object relationship;
placing the first object type and second object type data in an object cache;
receiving a request from a client to retrieve database information corresponding to the second object type; and
,providing data corresponding to said second object type directly from said object cache, without making another call to the database. - View Dependent Claims (14, 15, 16, 17, 18)
-
Specification