A JDBC application can be logically divided into two layers:
1. Driver layer
2. Application layer
Driver layer consists of DriverManager class and the available JDBC drivers.
The application begins with requesting the DriverManager for the connection.
An appropriate driver is choosen and is used for establishing the connection. This connection is given to the application which falls under the application layer.
The application uses this connection to create Statement kind of objects, through which SQL commands are sent to backend and obtain the results.
0 Comments
The life cycle of a servlet consists of the following phases: JDBC makes the interaction with RDBMS simple and intuitive. When a Java application needs to access database : The major features added in JDBC 4.0 include : Java Database Connectivity (JDBC) is a standard Java API to interact with relational databases form Java. JDBC has set of classes and interfaces which can use from Java application and talk to database without learning RDBMS details and using Database Specific JDBC Drivers. |
ArchivesCategories |