This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
dev:jdbc:home [2011/01/12 20:45] els |
dev:jdbc:home [2012/10/26 14:51] (current) |
||
|---|---|---|---|
| Line 3: | Line 3: | ||
| ====== Development: JDBC Interface ====== | ====== Development: JDBC Interface ====== | ||
| - | **[[dev:jdbc:home|Overview]]** | [[dev:jdbc:datasources|JDBC Datasources]] | [[dev:jdbc:sample|Sample Program]] | + | **[[dev:jdbc:home|Overview]]** | [[dev:jdbc:sample|Sample Java Program]] |
| ---- | ---- | ||
| Line 15: | Line 15: | ||
| The Omnidex JDBC class files are stored in a jar file named Omnidex.jar, which is located in the bin subdirectory of the Omnidex home directory on a Microsoft Windows computer (%OMNIDEX_HOME%/bin/Omnidex.jar), or the lib directory on a Linux computer ($OMNIDEX_HOME/lib/Omnidex.jar). | The Omnidex JDBC class files are stored in a jar file named Omnidex.jar, which is located in the bin subdirectory of the Omnidex home directory on a Microsoft Windows computer (%OMNIDEX_HOME%/bin/Omnidex.jar), or the lib directory on a Linux computer ($OMNIDEX_HOME/lib/Omnidex.jar). | ||
| - | |||
| - | The Omnidex JDBC classes and the java.sql classes should be imported into the Java class file. The Omnidex JDBC driver should also be loaded and registered with java.sql.DriverManager. | ||
| JDBC classes require that you import java.sql into the Java application. | JDBC classes require that you import java.sql into the Java application. | ||
| Line 22: | Line 20: | ||
| import java.sql.*; | import java.sql.*; | ||
| - | The Omnidex JDBC driver requires that you load it with the java.sql.DriverManager. | + | The Omnidex JDBC driver requires that you load it using the following statement. |
| Class.forName("omnidex.jdbc.OdxJDBCDriver"); | Class.forName("omnidex.jdbc.OdxJDBCDriver"); | ||
| Line 41: | Line 39: | ||
| ===== ===== | ===== ===== | ||
| - | **[[dev:jdbc:datasources|Next]]** | + | **[[dev:jdbc:sample|Next]]** |
| ====== Additional Resources ====== | ====== Additional Resources ====== | ||
| Line 47: | Line 45: | ||
| See also: | See also: | ||
| + | * [[dev:odbc:filedsn| ODBC File DSN Syntax Specification]] | ||
| {{page>:dev:see_also&nofooter&noeditbtn}} | {{page>:dev:see_also&nofooter&noeditbtn}} | ||
| {{page>:bottom_add&nofooter&noeditbtn}} | {{page>:bottom_add&nofooter&noeditbtn}} | ||