All Examples  This Package

Class examples.jdbc.t3client.simpleselect

java.lang.Object
   |
   +----examples.jdbc.t3client.simpleselect

public class simpleselect
extends Object
This simple example shows how data and result set metadata are selected with JDBC. This example uses the Cloudscape database which is supplied in an evaluation version with WebLogic Server. The table emp already exists in the demo database shipped with WebLogic Server. This example also illustrates how to connect to the WebLogic Server with an implicit connection that doesn't require instantiation of a T3Client.

To set up this example:

  1. Set up your development shell as described in Setting up your environment.

  2. Modify simpleselect.java with the host name and port number for your WebLogic Server.

  3. Compile the example by executing the following command in your development shell:

    $ javac -d %CLIENT_CLASSES% simpleselect.java

  4. Start WebLogic Server in a separate shell.

  5. Run this example by executing the following command in your development shell:

    $ java examples.jdbc.t3client.simpleselect

Author:
Copyright (c) 1996-1999 by BEA Systems, Inc. All Rights Reserved.

Constructor Index

 o simpleselect()

Method Index

 o main(String[])
Runs this example from the command line.

Constructors

 o simpleselect
 public simpleselect()

Methods

 o main
 public static void main(String[] argv) throws Exception
Runs this example from the command line.

All Examples  This Package