|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.util.pool.service.C3p0ConnectionService
public class C3p0ConnectionService
C3P0 connection service
| Field Summary |
|---|
| Fields inherited from interface fr.paris.lutece.util.pool.service.ConnectionService |
|---|
INFO_NOT_AVAILABLE |
| Constructor Summary | |
|---|---|
C3p0ConnectionService()
|
|
| Method Summary | |
|---|---|
void |
freeConnection(java.sql.Connection conn)
Release the connection |
java.sql.Connection |
getConnection()
Get a connection |
int |
getCurrentConnections()
Gets the number of opened connections |
org.apache.log4j.Logger |
getLogger()
Gets the logger |
int |
getMaxConnections()
Gets the max connections |
java.lang.String |
getPoolName()
Gets the pool name |
java.lang.String |
getPoolProvider()
Gets the pool manager provider |
void |
init(java.util.Hashtable<java.lang.String,java.lang.String> htParamsConnectionPool)
Initialize pool parameters |
void |
release()
Free all connections |
void |
setLogger(org.apache.log4j.Logger log)
Define the logger |
void |
setPoolName(java.lang.String poolName)
Define the pool name |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public C3p0ConnectionService()
| Method Detail |
|---|
public void init(java.util.Hashtable<java.lang.String,java.lang.String> htParamsConnectionPool)
init in interface ConnectionServicehtParamsConnectionPool - Parameterspublic java.sql.Connection getConnection()
getConnection in interface ConnectionServicepublic void freeConnection(java.sql.Connection conn)
freeConnection in interface ConnectionServiceconn - The connection to releasepublic void setPoolName(java.lang.String poolName)
setPoolName in interface ConnectionServicepoolName - The pool namepublic java.lang.String getPoolName()
getPoolName in interface ConnectionServicepublic void setLogger(org.apache.log4j.Logger log)
setLogger in interface ConnectionServicelog - The loggerpublic org.apache.log4j.Logger getLogger()
getLogger in interface ConnectionServicepublic void release()
release in interface ConnectionServicepublic int getCurrentConnections()
getCurrentConnections in interface ConnectionServicepublic int getMaxConnections()
getMaxConnections in interface ConnectionServicepublic java.lang.String getPoolProvider()
getPoolProvider in interface ConnectionService
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||