Claims
- 1. A method of using Java as a stored procedure programming language comprising:obtaining an abstract data type attribute from a database; wrapping the abstract data type attribute in a Java class; and executing a stored procedure in a Java virtual machine, wherein the stored procedure is written in the Java programming language and uses the Java class.
- 2. The method of claim 1 wherein the abstract data type attribute is defined in C++.
- 3. The method of claim 1 wherein the Java class comprises a put method.
- 4. The method of claim 1 wherein the Java class comprises a get method.
- 5. The method of claim 1 further comprising the stored procedure utilizing a server side cursor to execute an SQL query.
- 6. A system for using Java as a stored procedure programming language comprising:a database comprised of an abstract data type attribute; a Java class wrapping the abstract data type attribute; a stored procedure on a data server, the stored procedure written in the Java programming language using the Java class; a Java virtual machine configured to execute the stored procedure.
- 7. The system of claim 6 wherein the abstract data type attribute is defined in C ++.
- 8. The system of claim 6 wherein the Java class comprises a put method.
- 9. The system of claim 6 wherein the Java class comprises a get method.
- 10. The system of claim 6 further comprising a server side cursor used by the stored procedure to an execute SQL query.
- 11. An article of manufacture for using Java as a stored procedure programming language comprising:means for obtaining an abstract data type attribute from a database; means for wrapping the abstract data type attribute in a Java class; and means for executing a stored procedure in a Java virtual machine, wherein the stored procedure is written in the Java programming language and uses the Java class.
- 12. The article of manufacture of claim 11 wherein the abstract data type attribute is defined in C ++.
- 13. The article of manufacture of claim 11 wherein the Java class comprises a put method.
- 14. The article of manufacture of claim 11 wherein the Java class comprises a get method.
- 15. The article of manufacture of claim 11 further comprising means for the stored procedure to utilize a server side cursor to execute an SQL query.
CROSS REFERENCE TO RELATED APPLICATIONS
This application is related to the following co-pending and commonly assigned patent applications, which are incorporated by reference herein:
Pending application Serial No. 09/470,215 entitled “METHOD AND APPARATUS FOR PARALLEL EXECUTION OF SQL FROM STORED PROCEDURES” filed on the same date herewith, by Navin Kabra, Jignesh Patel, Jie-Bing Yu, Biswadeep Nag, and Jian-Jun Chen.
Pending application Serial No. 09/449,704 entitled “METHOD AND APPARATUS FOR FETCHING ARRAY BASED OBJECTS BY DIRECT DELIVERY AND BATCHING” filed on Nov. 24, 1999, by Zhe Wang, Biswadeep Nag, Jie-Bing Yu, and Jignesh Patel,
Pending application Ser. No. 09,449,085 entitled “QUERY MONITOR PLAYBACK MECHANISM FOR POST-MORTEM PERFORMANCE ANALYSIS” filed on Nov. 24, 1999, by Jie-Bing Yu, Jun Li, and Karthikeyan Ramasamy.
US Referenced Citations (3)
Number |
Name |
Date |
Kind |
5553234 |
Cotner et al. |
Sep 1996 |
A |
6266716 |
Wilson et al. |
Jul 2001 |
B1 |
6289382 |
Bowman-Amuah |
Sep 2001 |
B1 |
Non-Patent Literature Citations (1)
Entry |
Enge, R.K. et al. discloses “using Java to add “stored procedures” to databases”; Sch. of Comp. Sci., Florida Int. Univ, Miami Florida, in Object-Oriented Languages and Systems, pp. 322-331, (Aug. 1-5, 1999). |