public class C3p0ConnectionService extends Object implements ConnectionService
INFO_NOT_AVAILABLE| Constructor and Description |
|---|
C3p0ConnectionService() |
| Modifier and Type | Method and Description |
|---|---|
void |
freeConnection(Connection conn)
Release the connection
|
Connection |
getConnection()
Get a connection
|
int |
getCurrentConnections()
Gets the number of opened connections
|
DataSource |
getDataSource()
Get datasource
|
org.apache.log4j.Logger |
getLogger()
Gets the logger
|
int |
getMaxConnections()
Gets the max connections
|
String |
getPoolName()
Gets the pool name
|
String |
getPoolProvider()
Gets the pool manager provider
|
void |
init(Map<String,String> htParamsConnectionPool)
Initialize pool parameters
|
void |
release()
Free all connections
|
void |
setLogger(org.apache.log4j.Logger log)
Define the logger
|
void |
setPoolName(String poolName)
Define the pool name
|
public void init(Map<String,String> htParamsConnectionPool)
init in interface ConnectionServicehtParamsConnectionPool - Parameterspublic Connection getConnection()
getConnection in interface ConnectionServicepublic void freeConnection(Connection conn)
freeConnection in interface ConnectionServiceconn - The connection to releasepublic void setPoolName(String poolName)
setPoolName in interface ConnectionServicepoolName - The pool namepublic 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 String getPoolProvider()
getPoolProvider in interface ConnectionServicepublic DataSource getDataSource()
getDataSource in interface ConnectionServiceCopyright © 2020 City of Paris. All rights reserved.