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.
 
| 
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 | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
JDBCTools
public JDBCTools()
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
 
 
Copyright © 2001 BEA Systems, Inc. All Rights Reserved