WebLogic Server 7.0 Code Examples, BEA Systems, Inc.

examples.jdbc.oracle.extensions
Class StructsDAO

java.lang.Object
  |
  +--examples.jdbc.oracle.extensions.BaseDAO
        |
        +--examples.jdbc.oracle.extensions.StructsDAO

public class StructsDAO
extends BaseDAO

This simple example shows how to use Oracle STRUCTs.

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

Constructor Summary
StructsDAO()
           
 
Method Summary
static java.util.Vector getEmployees(java.sql.Connection pConn)
          This function demontrates the retrieval of Oracle objects as java.sql.Struct objects.
static java.util.Vector getEmployees(java.lang.String pUrl)
          Wrapper for the get employee function.
static void insertEmployee(EmployeeBO pEmp, java.sql.Connection pConn)
          This function demontrates inserting Oracle objects into a table.
static java.util.Vector insertEmployee(EmployeeBO pEmp, java.lang.String pUrl)
          Wrapper for the insert employee function.
 
Methods inherited from class examples.jdbc.oracle.extensions.BaseDAO
cleanup, getConnection, getNextId, log
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StructsDAO

public StructsDAO()
Method Detail

getEmployees

public static java.util.Vector getEmployees(java.sql.Connection pConn)
                                     throws java.sql.SQLException

This function demontrates the retrieval of Oracle objects as java.sql.Struct objects.


getEmployees

public static java.util.Vector getEmployees(java.lang.String pUrl)
                                     throws java.sql.SQLException,
                                            javax.naming.NamingException

Wrapper for the get employee function. This function gets a connection and passes it to getEmployees.


insertEmployee

public static void insertEmployee(EmployeeBO pEmp,
                                  java.sql.Connection pConn)
                           throws java.sql.SQLException

This function demontrates inserting Oracle objects into a table.


insertEmployee

public static java.util.Vector insertEmployee(EmployeeBO pEmp,
                                              java.lang.String pUrl)
                                       throws java.sql.SQLException,
                                              javax.naming.NamingException

Wrapper for the insert employee function. This function gets a connection and passes it to updateEmployees.


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

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