Systems and methods for cursored collections
First Claim
1. A computer-based system for allowing a client to execute a query against a database, comprising:
- a persistence manager to receive a query request from a client and generate SQL for the query, the persistence manager further to execute the SQL on a database and receive a result set from the database, the persistence manager populating a set of EJBs with results of the result set wherein multiple EJBs are thus filed with the results of a single query into the database; and
a bean manager to provide the client with access to one of the set of EJBs;
wherein the EJBs are stored as a cursored collection that allows a client to execute a “
next result”
method to step through the EJBs, each EJB containing a single result, the bean manager storing the set of EJBs in local cache;
wherein the computer based system includes at least one processor.
3 Assignments
0 Petitions
Accused Products
Abstract
A cursored collection can be used to allow a user to view subsets of a data result set, thereby conserving system resources. A persistence manager can execute SQL statements on a database, receive a result set from the database, and populate a set of EJBs with the result set. This can be a full result set, or a subset of the full result set. A bean manager can allow the user to access all the EJBs or a subset of the EJBs. The bean manager can also provide the user with a list of EJBs and let the client select the EJBs to access. The client can then iterate through the result set, either by viewing different subsets or selecting different EJBs from the list. This iterative process can continue until all the results have been viewed or the client does not wish to access any more results from the set.
-
Citations
19 Claims
-
1. A computer-based system for allowing a client to execute a query against a database, comprising:
-
a persistence manager to receive a query request from a client and generate SQL for the query, the persistence manager further to execute the SQL on a database and receive a result set from the database, the persistence manager populating a set of EJBs with results of the result set wherein multiple EJBs are thus filed with the results of a single query into the database; and a bean manager to provide the client with access to one of the set of EJBs; wherein the EJBs are stored as a cursored collection that allows a client to execute a “
next result”
method to step through the EJBs, each EJB containing a single result, the bean manager storing the set of EJBs in local cache;wherein the computer based system includes at least one processor. - View Dependent Claims (2, 3, 4, 5, 6)
-
-
7. A method for allowing a client to execute queries against a database, comprising:
-
executing a finder method to generate a query to be executed against a database; generating the SQL for the query and executing the query against the database; receiving a set of results from the database corresponding to the query, and populating a set of EJBs with the results wherein multiple EJBs are thus filed with the results of a single query into the database; allowing the client to access the set of EJBs; wherein the EJBs are stored as a cursored collection that allows a client to execute a “
next result”
method to step through the EJBs, each EJB containing a single result;wherein a persistence manager is adapted to receive a query request from the client and generate SQL for the query; wherein the persistence manager executes the SQL on the database; and wherein the persistence manger populates the set of EJBs. - View Dependent Claims (8, 9)
-
-
10. A method for allowing a client to execute queries against a database, comprising:
-
executing a finder method to generate a query to be executed against a database; generating the SQL for the query and executing the query against the database; receiving a set of results from the database corresponding to the query and populating a set of EJBs with the results of a single query into the database; allowing the client to access a subset of the EJBs; wherein the EJBs are stored as a cursored collection that allows a client to execute a “
next result”
method to step through the EJBs, each EJB containing a single result;wherein a persistence manager is adapted to receive a query request from the client and generate SQL for the query; wherein the persistence manager executes the SQL on the database; and wherein the persistence manger populates the set of EJBs. - View Dependent Claims (11, 12)
-
-
13. A computer-readable storage medium, comprising:
-
means for executing a finder method to generate a query to be executed against a database; means for generating the SQL for the query and executing the query against the database; means for receiving a set of results from the database corresponding to the query and populating a set of EJBs with the results of a single query into the database; means for allowing the client to access the EJBs; wherein the EJBs are stored as a cursored collection that allows a client to execute a “
next result”
method to step through the EJBs, each EJB containing a single result;wherein a persistence manager is adapted to receive a query request from the client and generate SQL for the query; wherein the persistence manager executes the SQL on the database; and wherein the persistence manger populates the set of EJBs.
-
-
14. A computer program product on a computer-readable storage medium for execution by a server computer for allowing a client to execute queries against a database, comprising:
-
computer code for executing a finder method to generate a query to be executed against a database; computer code for generating the SQL for the query and executing the query against the database; computer code for receiving a set of results from the database corresponding to the query and populating a set of EJBs with the results of a single query into the database; computer code for allowing the client to access a subset of the EJBs; wherein the EJBs are stored as a cursored collection that allows a client to execute a “
next result”
method to step through the EJBs, each EJB containing a single result;wherein a persistence manager is adapted to receive a query request from the client and generate SQL for the query; wherein the persistence manager executes the SQL on the database; and wherein the persistence manger populates the set of EJBs.
-
-
15. A computer-based system for allowing a client to execute queries against a database, comprising:
-
means for executing a finder method to generate a query to be executed against a database; means for generating the SQL for the query and executing the query against the database; means for receiving a set of results from the database corresponding to the query and populating a set of EJBs with the results of a single query into the database; means for allowing the client to access the EJBs; wherein the EJBs are stored as a cursored collection that allows a client to execute a “
next result”
method to step through the EJBs, each EJB containing a single result;wherein the computer based system includes at least one processor; wherein a persistence manager is adapted to receive a query request from the client and generate SQL for the query; wherein the persistence manager executes the SQL on the database; and wherein the persistence manger populates the set of EJBs.
-
-
16. A computer system comprising:
- a processor;
object code executed by said processor, said object code configured to; execute a finder method to generate a query to be executed against a database; generate the SQL for the query and executing the query against the database; receive a set of results from the database corresponding to the query and populating a set of EJBs with the results wherein multiple EJBs are thus filed with the results of a single query into the database; allow clients to access the EJBs; wherein the EJBs are stored as a cursored collection that allows a client to execute a “
next result”
method to step through the EJBs, each EJB containing a single result;wherein a persistence manager is adapted to receive a query request from the client and generate SQL for the query; wherein the persistence manager executes the SQL on the database; and wherein the persistence manger populates the set of EJBs.
- a processor;
-
17. A computer-readable storage medium, comprising:
-
a code segment including instructions to execute a finder method to generate a query to be executed against a database; a code segment including instructions to generate the SQL for the query and executing the query against the database; a code segment including instructions to receive a set of results from the database corresponding to the query and populating a set of EJBs with the results of a single query into the database; a code segment including instructions to allow the client to access the EJBs; wherein the EJBs are stored as a cursored collection that allows a client to execute a “
next result”
method to step through the EJBs, each EJB containing a single result;wherein a persistence manager is adapted to receive a query request from the client and generate SQL for the query; wherein the persistence manager executes the SQL on the database; and wherein the persistence manger populates the set of EJBs.
-
-
18. A computer-based method comprising:
-
generating SQL for a query and executing the query against a database; receiving a set of results from the database corresponding to the query and populating a set of EJBs with single results of the set of results, such that each EJB of the set contains a different result wherein multiple EJBs are thus filed with the results of a single query into the database; wherein the EJBs are stored as a cursored collection that allows a client to execute a “
next result”
method to step through the EJBs, each EJB containing a single result;wherein a persistence manager is adapted to receive a query request from the client and generate SQL for the query; wherein the persistence manager executes the SQL on the database; and wherein the persistence manger populates the set of EJBs. - View Dependent Claims (19)
-
Specification