70 likes | 177 Views
Advanced OOP MCS-3 OOP BSCS-3 Lecture # 23. Database Connectivity in Java. STEP 4 : Process Results. ResultSet object maintains a cursor pointing to its current row of data. Database Connectivity in Java. STEP 4 : Process Results. Database Connectivity in Java.
E N D
Database Connectivity in Java STEP 4: Process Results • ResultSetobject maintains a cursor pointing to its current row of data.
Database Connectivity in Java STEP 4: Process Results
Database Connectivity in Java STEP 4: Process Results
Database Connectivity in Java STEP 4: Process Results • ResultSet.FETCH_FORWARD • ResultSet.FETCH_REVERSE
Database Connectivity in Java STEP 5: Close • It is a good idea to close the Statement and Connection objects when you have finished with them. • Close the ResultSetobject • close(); • Close the Statement object • close(); • Close the connection • close();