10.07.2015 Views

JDBC Developer's Guide - Supra - Cincom

JDBC Developer's Guide - Supra - Cincom

JDBC Developer's Guide - Supra - Cincom

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Contents1. Overview ................................................................................ 7Introduction ................................................................................................ 7What is <strong>JDBC</strong>? .............................................................................................. 8Basic driver architecture ................................................................................. 9<strong>Cincom</strong> ORDB extensions to the <strong>JDBC</strong> standard .................................................... 10Supported JDK and <strong>JDBC</strong> versions .................................................................... 112. Verifying a <strong>JDBC</strong> Driver installation ............................................. 12Introduction .............................................................................................. 12Checking installed directories and files ............................................................. 13Directories for <strong>JDBC</strong> ............................................................................... 13Check the environment variables ..................................................................... 14Determining the version of the <strong>JDBC</strong> Driver ................................................... 14Testing <strong>JDBC</strong> and the database connection .................................................... 15Running the jdbcHelloWorld.java program..................................................... 153. Basic Features ........................................................................ 19Introduction .............................................................................................. 19First steps in <strong>JDBC</strong> ...................................................................................... 20Step 1: Register the <strong>JDBC</strong> Driver ................................................................ 20Step 2: Open a connection to a database ..................................................... 21Step 3: Create a Statement object ............................................................. 21Step 4: Execute a query and return a ResultSet object ..................................... 22Step 5: Process the ResultSet object ........................................................... 23Step 6: Close the ResultSet and Statement Objects ......................................... 23Step 7: Close the Connection .................................................................... 23Sample: Connecting, querying, and processing the results ....................................... 24Datatype mappings ...................................................................................... 25<strong>Cincom</strong> ORDB <strong>JDBC</strong> extension types ............................................................. 26Error Messages and <strong>JDBC</strong> ............................................................................... 27<strong>JDBC</strong> <strong>Developer's</strong> <strong>Guide</strong>, P25-9504-03 4Contents

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!