BEA Systems, Inc.

com.beasys.commerce.axiom.util.weblogic
Class JDBCTools

java.lang.Object
  |
  +--com.beasys.commerce.axiom.util.weblogic.JDBCTools

public class JDBCTools
extends java.lang.Object

Generic class for getting JDBC connections for your server. Reimplement to get your own connections. It is a class, so that we can statically call the methods on the class.


Constructor Summary
JDBCTools()
           
 
Method Summary
static java.sql.Connection getConnection()
          Get a WebLogic connection from a JDBC database connection pool.
static java.sql.Connection getJtsConnection()
          Get a WebLogic connection from a JTS database connection pool.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JDBCTools

public JDBCTools()
Method Detail

getConnection

public static java.sql.Connection getConnection()
                                         throws ToolkitException,
                                                java.sql.SQLException
Get a WebLogic connection from a JDBC database connection pool. The pool used is determined by the weblogic.properties file database connection pool property whose value is the com.beasys.commerce.axiom.util.ToolkitConstants.DEFAULT_JDBC_POOL_NAME. Depending on whether this is client side or server side it will get the connection two different ways. This can not be used for a EJB connection pool.
Returns:
Connection pooled connection
See Also:
ToolkitConstants.DEFAULT_JDBC_POOL_NAME, weblogic.properties

getJtsConnection

public static java.sql.Connection getJtsConnection()
                                            throws ToolkitException,
                                                   java.sql.SQLException
Get a WebLogic connection from a JTS database connection pool. The pool used is determined by the weblogic.properties file database connection pool property whose value is the com.beasys.commerce.axiom.util.ToolkitConstants.DEFAULT_JTS_POOL_NAME. Depending on whether this is client side or server side it will get the connection two different ways. This can not be used for a EJB connection pool.
Returns:
Connection pooled connection
See Also:
ToolkitConstants.DEFAULT_JTS_POOL_NAME, weblogic.properties

BEA Systems, Inc.

Copyright © 2000 BEA Systems, Inc. All Rights Reserved