Survey
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
JDBC Java data base connectivity JDBC (java data base connectivity) JDBC stands for java data base connectivity which is a standard java API for database-independent connectivity between the java programming language and a wide range of databases. JDBC is a Java API that is used to connect and execute query to the Database. JDBC API uses JDBC drivers to connect to the database. JDBC Driver is used to connect with different data source There are four types of Drivers 1. 2. 3. 4. JDBC-ODBC Bridge Native API partial Java Driver Net pure Java Driver 100% Java Driver 1. JDBC-ODBC Bridge ODBC it is stand for Open Database Connectivity it is the tool provided by Microsoft gives flexibility to attach any different platform or language JDBC-ODBC Bridge provide connectivity to ODBC data source JAVA JDBCODBC ODBC 1.SQL 2. Ms Access 2. Native- API Partial Java Driver These driver are written into native language with partial java implementation . The Native API Driver uses the client-side libraries of the Database. Native Driver needs to be installed on each client machine. Performance upgraded than JDBC-ODBC bridge driver. The driver converts JDBC method calls into native calls of Database. JDBC API Java Application Native API Driver Vender Database Library Process Of Native Driver Database 3. Net pure Java Driver These driver are used to connect data sources from network locations . Network support is required for client machine No client side library is required because of Application server that can perform many tasks like auditing ,load balancing , logging etc. The network protocol driver uses middleware (Application server) JDBC API Network protocol Driver Java Application Middleware (Application server) Database Process Of Net pure java driver 4. 100% pure java Driver: These are the driver provided by the Database vendors . It gives very high performance. The thin driver converts JDBC calls directly into the vendor-specific database protocol. That is why it is known Thin driver. It is fully written in java language. 100% pure java Driver is also known as Thin driver. JDBC API Java Application Process of thin driver Thin Driver Database Common JDBC components DriverManager:- DriverManager is a class , which is used to load specific type of driver. Connection :- Connection is used to get connection from dataSource Statement:-Statement is used to pass down the SQL statement. ResultSet:- it stores the data coming from SQL Statement. PreparedStatemet:-these are free compiled SQL statement THANK YOU