|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjodd.db.pool.ContextConnectionPool
Tomcat4 alike connection pools that uses Context for initilization.
Constructor Summary | |
ContextConnectionPool()
|
Method Summary | |
void |
close()
Close pool when it is not needed anymore. |
void |
freeConnection(java.sql.Connection conn)
Return connection to connection pool |
java.sql.Connection |
getConnection()
Get one free connection from the connection pool. |
void |
init()
Initialize pool with current object state. |
void |
setDataSourceName(java.lang.String s)
|
void |
setEnvContextName(java.lang.String s)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ContextConnectionPool()
Method Detail |
public void setEnvContextName(java.lang.String s)
public void setDataSourceName(java.lang.String s)
public void init() throws java.sql.SQLException
ConnectionPool
init
in interface ConnectionPool
java.sql.SQLException
public void close()
ConnectionPool
close
in interface ConnectionPool
public java.sql.Connection getConnection() throws java.sql.SQLException
ConnectionPool
getConnection
in interface ConnectionPool
java.sql.SQLException
public void freeConnection(java.sql.Connection conn)
freeConnection
in interface ConnectionPool
conn
- database connection
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |