Lotus Everyplace 9.1.3 for Lotus Expeditor 6.2

Developing Java applications using DB2 Everyplace

DB2® Everyplace® provides a Java™ API that you can use to develop applications that use the DB2 Everyplace database.

Prerequisite: Install Java and JDBC on your workstation.
To develop DB2 Everyplace Java applications:
  1. Import the java.sql package and any other necessary Java classes.
  2. Connect to the database either using the DriverManager class or the DataSource interface. See the sample Java application for details. The JDBC URL syntax is jdbc:subprotocol:subname. The DB2 Everyplace subprotocol is db2e.
    Restriction: DB2 Everyplace does not support multitasking on Symbian. In order to access a database from a second thread, the Connection object from the first thread must be closed before the connection can be established in the second thread. The same Connection object cannot be shared between threads.
  3. Create a Statement object.
  4. Access the database (your application logic goes here):
    1. Execute a SQL statement using the Statement object.
    2. Retrieve data from the returned ResultSet object (if the SQL statement you executed is a query).
  5. Release database and JDBC resources by closing the ResultSet, Statement, and Connection objects.
Related reference
Overview of DB2 Everyplace JDBC support


Library | Support | Home | Education | Terms of use

Last updated: October 21, 2008
© Copyright IBM Corporation 2004, 2008. All Rights Reserved.
This information center is Built on Eclipse™ (http://www.eclipse.org).