aspose file tools*
The moose likes JDBC and the fly likes JDBC driver types Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "JDBC driver types" Watch "JDBC driver types" New topic
Author

JDBC driver types

Raj chiru
Ranch Hand

Joined: Aug 12, 2008
Posts: 141
Hi...
why Sun has divided the implementation types into four categories(Types 1,2,3, and 4)?what's the reason?
Ninad Kulkarni
Ranch Hand

Joined: Aug 31, 2007
Posts: 802

What are those types?


SCJP 5.0 - JavaRanch FAQ - Java Beginners FAQ - SCJP FAQ - SCJP Mock Tests - Tutorial - JavaSE7 - JavaEE6 -Generics FAQ - JLS - JVM Spec - Java FAQs - Smart Questions
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 40052
    
  28
Have a look at the JDBC documentation, (for the benefit of anybody noticing the skull-and-crossbones on the moose today, "Shiver me timbers, me hearties!"), particularly the "technology guide" ยง1.2.8, and see whether that helps. And there might be something useful in our FAQ; I haven't checked.
Salil Vverma
Ranch Hand

Joined: Sep 06, 2009
Posts: 255

Hey Ninand,
The four type of drives are type1, type2, type3 and type 4..


Type 1: JDBC-ODBC Bridge plus ODBC Driver
This combination provides JDBC access via ODBC drivers. ODBC binary code -- and in many cases, database client code -- must be loaded on each client machine that uses a JDBC-ODBC Bridge. Sun provides a JDBC-ODBC Bridge driver, which is appropriate for experimental use and for situations in which no other driver is available.

Type 2: A native API partly Java technology-enabled driver
This type of driver converts JDBC calls into calls on the client API for Oracle, Sybase, Informix, DB2, or other DBMS. Note that, like the bridge driver, this style of driver requires that some binary code be loaded on each client machine.


Type 3: Pure Java Driver for Database Middleware
This style of driver translates JDBC calls into the middleware vendor's protocol, which is then translated to a DBMS protocol by a middleware server. The middleware provides connectivity to many different databases.



Type 4: Direct-to-Database Pure Java Driver
This style of driver converts JDBC calls into the network protocol used directly by DBMSs, allowing a direct call from the client machine to the DBMS server and providing a practical solution for intranet access.

You can find a complete explaination here


Regards
Salil Verma
Ram Para
Ranch Hand

Joined: Jul 09, 2008
Posts: 50
You can find more details here

http://en.wikipedia.org/wiki/JDBC_driver#Type_1_Driver_-_JDBC-ODBC_bridge


Ram Parashar
http://doinfinite.com
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JDBC driver types