Connecting Using the TimesTen JDBC Driver and Driver Manager
The TimesTen JDBC driver enables Java applications to issue SQL statements to TimesTen and process the results. It is the primary interface for data access in the Java programming language.
As shown in Figure 1-1, the TimesTen JDBC driver uses the ODBC driver to access TimesTen databases. For each JDBC method, the driver runs a set of ODBC functions to perform the appropriate operation. Since the JDBC driver depends on ODBC for all database operations, the first step in using JDBC is to define a TimesTen database and the ODBC driver that accesses it on behalf of JDBC.
The TimesTen JDBC API is implemented using native methods to bridge to the TimesTen
native API. Java provides a driver manager that can support multiple drivers connecting
to separate databases. The Java DriverManager class keeps track of all
JDBC drivers that have been loaded and are available to the Java application. The
application may load several drivers and access each driver independently. For example,
an application can load both a TimesTen client JDBC driver and an Oracle database JDBC
driver. Then, Java applications can access either the TimesTen or Oracle databases.
For a list of the Java functions supported by TimesTen, see Support for Interfaces in the java.sql Package in Oracle TimesTen In-Memory Database Java Developer's Guide.