aspose file tools
The moose likes Beginning Java and the fly likes What is native API? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "What is native API?" Watch "What is native API?" New topic
Author

What is native API?

abhishek kunal
Ranch Hand

Joined: Jul 27, 2009
Posts: 42
we call type 2 driver as native -API driver?? is it just because of jbbc calls being converted into database specific calls??
i read this..Type 2 drivers need native binary code installed and configured to work....what is this native binary code?? is it just compiled code for database calls which this driver provides??
K. Tsang
Ranch Hand

Joined: Sep 13, 2007
Posts: 1259

Maybe this will help http://www.jdbc-tutorial.com/jdbc-driver-types.htm

OK you know what "native" means in terms of programming? It's like low-level almost close to the real thing (like assembly, 1s and 0s for computer CPU and stuff). So for databases it's similar low-level only that particular dbms understands and most direct. So Oracle native API and MySQL native API would be different, implementation wise.


K. Tsang JavaRanch SCJP5 SCJD/OCM-JD
Sebastian Janisch
Ranch Hand

Joined: Feb 23, 2009
Posts: 1183
A native implementation is mostly platform dependent. A lot of the Object's methods are native. The reason for that is because the native implementation is either faster or it also can be chose because you are closer to the hardware.


JDBCSupport - An easy to use, light-weight JDBC framework -
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: What is native API?
 
Similar Threads
type 3 drive
Hibernate + sun's jdbcodbc Driver
JDBC driver types
Difference between Type I and Type II drivers.
JDBC drivers