|
||
|
Lesson 8
Objective
|
Understanding how JBDC works with Java
Describe capabilities of Java and DBMS using JBDC. |
|
|
The designers of JDBC had several objectives when they created their specifications. They wanted to give developers the maximum
amount of flexibility when coding their applications and making their SQL requests. They also wanted to hide the details of creating
and managing a connection to a DBMS to the maximum degree possible. This is in keeping with the "write once, run anywhere"
philosophy of Java.
JDBC services
JDBC provides two services to a Java application.
The function of the database driver
That connection layer manages the details about what is required to connect to a specific DBMS system. This is called a database driver
and is handled and loaded by a driver manager class.
Understanding JDBC - Exercise
This separation of work makes JDBC very powerful. It makes it easier to write applications that are not as tightly tied to a specific database system as they might otherwise be. This helps preserve the portability of the application. It also limits and places bounds on the "non-object orientedness" introduced into a Java application. The JDBC wraps access to the non-object oriented world of a relational database in an object-oriented format. This keeps JBDC methods consistent with the style and strengths of Java applications.
Click the Exercise link below to analyze where JDBC could be used to solve your client's business problem.
Understanding JDBC - Exercise |
||
|
|
||
