What is type 1,2,3 or 4 of a JDBC Driver?

前端 未结 5 555
终归单人心
终归单人心 2020-12-28 16:45

To connect to a database using Java, most of us use JDBC API.

We normally include driver like ojdbc14 (Intended for Java 1.4) in class path, and in pro

5条回答
  •  囚心锁ツ
    2020-12-28 17:02

    The "type" refers to how the driver implements the API. The four types are:

    Type 1: JDBC-ODBC Bridge driver (Bridge)

    Type 2: Native-API/partly Java driver (Native)

    Type 3: AllJava/Net-protocol driver (Middleware)

    Type 4: All Java/Native-protocol driver (Pure)

    They will have different performance characteristics. See this link for a more detailed review.

提交回复
热议问题