Re: How to write a sample Java Bean to access data from the RDBMS( Oracle).
Monday, February 25, 2002 08:48 PM
Just a pseudo code explantion how to write the Java Bean to access data in a oracle database
1. Write a method to connect to the database.
2. Write the method to execute the Insert, Update, Delete queries say executeQuery.
3. Write the method to fetch the data from the table say getRecordset.
4. Finally a method to close the Connection.
The parameters to pass to the executeQuery and getRecordset is the query to get executed.