| java.lang.Object biz.hammurapi.sql.ConnectionPerThreadDataSource
All known Subclasses: biz.hammurapi.sql.hypersonic.HypersonicDataSource,
ConnectionPerThreadDataSource | public class ConnectionPerThreadDataSource implements DataSource(Code) | | Maintains one connection per thread. Connection is allocated on first
getConnection() call. Every next call increments use counter.
Connection closes when it is not used (counter==0) and connectionCloseTimeout passed.
author: Pavel Vlasov version: $Revision: 1.7 $ |
getInitConnectionTransaction | public Transaction getInitConnectionTransaction()(Code) | | connection initialization transaction |
getLoginTimeout | public int getLoginTimeout()(Code) | | |
setLoginTimeout | public void setLoginTimeout(int seconds)(Code) | | |
shutdown | public synchronized void shutdown()(Code) | | Closes all pooled (unused) connections and instructs connections being used
to close immeidatly once they are released.
throws: SQLException - |
|
|