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

Simple JDBC test question

Stephen Lim
Greenhorn

Joined: Jul 30, 2003
Posts: 15
Question: JDBC Type 4 drivers are implemented

A. using a mixture of java code and custom C code, linked using the JNI

B. using a proprietary database vendor protocol to communicate with the JVM

C. in pure java

D. using generic networking APIs through TCP/IP sockets. At the server-side, a middleware application translates the generic APIs to the database-specific calls required
I answered as C. Is this correct?
Pls view info at http://www.cariboulake.com/techinfo/jdbc_driver_types.html I'm sure many of us here has use classes12.zip (the JDBC driver for Oracle). Now, is that type 3 or 4?


Warm regards,<p>Stephen Lim
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
I answered as C. Is this correct?
Yes.
I'm sure many of us here has use classes12.zip (the JDBC driver for Oracle). Now, is that type 3 or 4?
It should be Type 4.


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Simple JDBC test question