0% found this document useful (0 votes)
4 views1 page

7 1JDBC

The document outlines a project involving JDBC where a table named STUDENT is created in an RDBMS to store information about students, including roll number, first name, and last name. It specifies that configuration parameters for database connectivity should be read from an external properties file rather than hard-coded. Additionally, a Java application is required to read and display the student data using JTable and ResultSetMetaData for column names.

Uploaded by

Suresh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views1 page

7 1JDBC

The document outlines a project involving JDBC where a table named STUDENT is created in an RDBMS to store information about students, including roll number, first name, and last name. It specifies that configuration parameters for database connectivity should be read from an external properties file rather than hard-coded. Additionally, a Java application is required to read and display the student data using JTable and ResultSetMetaData for column names.

Uploaded by

Suresh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 1

Topic: - JDBC

1. Create more than 5 Students and store it in a RDBMS table.


Student encapsulates rollno, firstname and lastname.
Create a Table STUDENT in RDBMS having columns as
ROLLNO, FNAME, and LNAME.
Save all the created students inside the table.
Configuration parameters like driver,url,username and password
Should not be hard-coded inside program but should be read
from an external configuration file. ( create config.properties)
(Note ; Make use of Properties.java class for reading the configuration
Parameters from config.property file )
Type 4 driver should be used while communicating with DB.

2. Write a Java application which will read the data from above
Table and display it in JTABLE.
Use ResultSetMetaData for retrieving the column names
And use ResultSet for retrieving the actual data from table.
Configuration parameters like driver,url,username and password
Should not be hard-coded inside program but should be read
from an external configuration file.
(Note ; Make use of Properties.java class for reading the configuration
Parameters from config.properties file )
Type 4 driver should be used while communicating with DB

You might also like