public class ThreadConnectionManager
extends java.lang.Object
Constructor and Description |
---|
ThreadConnectionManager() |
Modifier and Type | Method and Description |
---|---|
static void |
addConnection(com.caucho.env.dbpool.ManagedPoolItem conn)
Adds a pooled connection to the current thread.
|
static ThreadConnectionManager |
createThreadManager()
Returns the manager for the current thread, creating if necessary.
|
static ThreadConnectionManager |
getThreadManager()
Returns the manager for the current thread.
|
static void |
removeConnection(com.caucho.env.dbpool.ManagedPoolItem conn)
Removes a pooled connection from the current thread.
|
static void |
setThreadManager(ThreadConnectionManager manager)
Sets the manager for the current thread.
|
public static ThreadConnectionManager getThreadManager()
public static void setThreadManager(ThreadConnectionManager manager)
public static ThreadConnectionManager createThreadManager()
public static void addConnection(com.caucho.env.dbpool.ManagedPoolItem conn)
public static void removeConnection(com.caucho.env.dbpool.ManagedPoolItem conn)