Adv - Java QB
Adv - Java QB
CO1/L2 1 Consider the parameters of callable statement object, IN, OUT and 12
INOUT write a suitable code to call a stored procedure and retrieve a
value returned by the stored procedure.
2 Demonstrate the different steps involved in JDBC Process by providing 12
code snippet.
3 Write a code snippet with explanation for following: 12
i. connecting to database
creating and executing a statement
4 By considering a transaction on customer table, give a code that 12
updates any of the rows to demonstrate updatable ResultSet.
5 Illustrate the following: 12
a) Different types of statement objects with example
b) SQL Exception methods
6 Obtain the steps to create the association between database and 12
JDBC/ODBC bridge.
7 Illustrate four types of JDBC drivers. 12
8 Illustrate the different steps involved in JDBC process with an example 12
for each.
9 Demonstrate the following concepts with an example program: 12
I. Scrollable ResultSet
Callable statement
10 Illustrate the following concepts with an example program: 12
a. Transaction Processing
Updatable ResultSet
CO3/L4 1 Design and develop a Java program that uses scrollable virtual cursor 8
to show the working of the ResultSet object methods.
2 Design a code to explain how J2EE component can access Metadata 8
by using DatabaseMetaData interface.
3 Design a java program to connect to database using URL and to 8
connect database using user id and password.
4 Design and develop a Java program that executes insert and delete 8
queries using the prepared statement object.
5 Design a program to execute database transaction. 8
6 Design a code to explain how J2EE component can access Metadata 8
by using ResultSetMetaData interface.
7 Design and develop a program to retrieve the data from database. 8
8 Design a program to insert rows in ResultSet. 8
9 Design a program to delete rows from a ResultSet. 8
10 Design a program to connect to database with following information: 8
Driver :JDBC/ODBC bridge
URL :”jdbc.odbc:Ex”
Username :”xyz”
Password :”123”