JDBC Api Components and Drivers
JDBC Api Components and Drivers
JDBC Api Components and Drivers
COMPONENTS
AND DRIVERS
JDBC Architecture
JDBC API COMPONENTS
◦ 1. DriverManager
◦ 2. Driver
◦ 3. Connection
◦ 4. Statement
◦ 5. ResultSet
◦ 6. SQLException
DriverManager
◦ You use objects created from this interface to submit the SQL
statements to the database.
◦ Some derived interfaces accept parameters in addition to executing
stored procedures.
ResultSet
◦ These objects hold data retrieved from a database after you execute
an SQL query using Statement objects.
◦ It acts as an iterator to allow you to move through its data.
SQLException