com.arsdigita.db
Class ConnectionManager

java.lang.Object
  extended bycom.arsdigita.db.ConnectionManager

public class ConnectionManager
extends Object

Central location for obtaining database connection.

Since:
4.5
Version:
$Revision: #25 $ $Date: 2004/04/07 $
Author:
David Dao

Field Summary
static String versionId
           
 
Constructor Summary
ConnectionManager()
           
 
Method Summary
static Connection getConnection()
          Deprecated. Use Session.getConnection() instead.
static Connection getCurrentThreadConnection()
          Deprecated. Use Session.getConnection() instead.
static void returnConnection(Connection conn)
          Deprecated. Connections acquired through Session.getConnection() will automatically be returned to the pool at the end of the transaction.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

versionId

public static final String versionId
See Also:
Constant Field Values
Constructor Detail

ConnectionManager

public ConnectionManager()
Method Detail

getConnection

public static Connection getConnection()
                                throws SQLException
Deprecated. Use Session.getConnection() instead.

Gets a jdbc connection.

Throws:
SQLException

returnConnection

public static void returnConnection(Connection conn)
                             throws SQLException
Deprecated. Connections acquired through Session.getConnection() will automatically be returned to the pool at the end of the transaction.

Returns a connection to the connection pool. Anytime code calls getConnection(), it needs to call this method when it is done with the connection

Parameters:
conn - the connection to return
Throws:
SQLException

getCurrentThreadConnection

public static Connection getCurrentThreadConnection()
Deprecated. Use Session.getConnection() instead.

Returns the connection presently in use by this thread.



Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 20 2004:2337 UTC