WebLogic Server 7.0 Code Examples, BEA Systems, Inc.

examples.jdbc.oracle
Class simpleselect

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

public class simpleselect
extends java.lang.Object

This simple example shows how data and result set metadata is selected with JDBC. It assumes the table empdemo exists. This table is created in the simplesql example.

This example is run on the command line and is output to System.out.

Build the Example

  1. In the %SAMPLES_HOME%\examples.properties file, specify a value for the following properties:

    The ant scripts for building and running the example use properties set in this file.

  2. Open a new command shell.

  3. Set up this development shell as described in Setting up Your Environment for Building and Running the Examples.

    For complete information, see Setting Up the Environment for Using WebLogic jDriver for Oracle in Installing and Using WebLogic jDriver for Oracle. The following sections contain instructions for specific platforms:

  4. Compile the example by executing the following command:

      prompt> ant

    Note: This script builds all of the examples in the oracle directory.

Run the Example

There's More

For more information about the WebLogic jDriver for Oracle, see Installing and Using WebLogic jDriver for Oracle.

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

Constructor Summary
simpleselect()
           
 
Method Summary
static void main(java.lang.String[] argv)
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

simpleselect

public simpleselect()
Method Detail

main

public static void main(java.lang.String[] argv)
                 throws java.lang.Exception

Documentation is available at
http://e-docs.bea.com/wls/docs70

Copyright © 2002 BEA Systems, Inc. All Rights Reserved.