JDBC Developer's Guide - Supra - Cincom
JDBC Developer's Guide - Supra - Cincom JDBC Developer's Guide - Supra - Cincom
conn.close();System.out.println ("Your Cincom ORDB JDBC installation is correct.");}// Utility function to read a line from standard inputstatic String readEntry (String prompt) {try {StringBuffer buffer = new StringBuffer ();System.out.print (prompt);System.out.flush ();int c = System.in.read ();while (c != '\n' && c != -1) {buffer.append ((char)c);c = System.in.read ();}return buffer.toString ().trim ();} catch (IOException e) {return "";}}}JDBC Developer's Guide, P25-9504-03 Page 18Chapter: 2. Verifying a JDBC Driver installationSection: Check the environment variables
3. Basic FeaturesIntroductionThis chapter covers the basic steps taken in any JDBC application. It alsodescribes additional Java and JDBC features supported by the Cincom ORDBJDBC driver, including the following topics:♦ How to get up and running with the Cincom ORDB JDBC driver♦♦♦Example of connecting, querying, and processing the resultsDatatype mappingsError messages and JDBCJDBC Developer's Guide, P25-9504-03 Page 19Chapter: 3. Basic FeaturesSection: Introduction
- Page 1: SQL ACCESS FOR SUPRASERVER PDM ®JD
- Page 4 and 5: Contents1. Overview ...............
- Page 6 and 7: 6. Coding tips and troubleshooting
- Page 8 and 9: What is JDBC?JDBC (Java Database Co
- Page 10: Cincom ORDB extensions to the JDBC
- Page 13 and 14: Checking installed directories and
- Page 15 and 16: Testing JDBC and the database conne
- Page 17: System.out.println ("Please enter i
- Page 21 and 22: Step 2: Open a connection to a data
- Page 23: Step 5: Process the ResultSet objec
- Page 26 and 27: Cincom ORDB JDBC extension typesAlt
- Page 28 and 29: 4. Cincom ORDB ExtensionsIntroducti
- Page 30 and 31: Class ordbGloThe ordbjava.jdbc.ordb
- Page 32 and 33: prepare a statement that has an inp
- Page 34 and 35: get the first resort referenceordbj
- Page 36 and 37: Invoking database methodsYou can us
- Page 38 and 39: Creating custom Java classes for Ci
- Page 40 and 41: Annotated examples of custom mapped
- Page 42 and 43: The above constructor can be used b
- Page 44 and 45: class jaccommodations.javaThe follo
- Page 46 and 47: public void readSQL(SQLInput stream
- Page 48 and 49: Relating Java classes to database c
- Page 50 and 51: Controlling when custom mapping occ
- Page 52 and 53: Using the getAttributes method of t
- Page 54 and 55: 13 activities// 14 sounds_of_the_ca
- Page 56 and 57: }Statement stmt = conn.createStatem
- Page 58 and 59: In the previous example, the applic
- Page 60 and 61: ♦writeSQL() method. You must impl
- Page 62 and 63: Retrieving a collection and its ele
- Page 64 and 65: while (rset.next()) {// activities
- Page 66 and 67: ordbCollection rooms = null;while (
3. Basic FeaturesIntroductionThis chapter covers the basic steps taken in any <strong>JDBC</strong> application. It alsodescribes additional Java and <strong>JDBC</strong> features supported by the <strong>Cincom</strong> ORDB<strong>JDBC</strong> driver, including the following topics:♦ How to get up and running with the <strong>Cincom</strong> ORDB <strong>JDBC</strong> driver♦♦♦Example of connecting, querying, and processing the resultsDatatype mappingsError messages and <strong>JDBC</strong><strong>JDBC</strong> <strong>Developer's</strong> <strong>Guide</strong>, P25-9504-03 Page 19Chapter: 3. Basic FeaturesSection: Introduction