|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.paris.lutece.util.pool.service.LuteceConnectionService
public class LuteceConnectionService
Lutece Connection Service
Field Summary |
---|
Fields inherited from interface fr.paris.lutece.util.pool.service.ConnectionService |
---|
INFO_NOT_AVAILABLE |
Constructor Summary | |
---|---|
LuteceConnectionService()
|
Method Summary | |
---|---|
void |
freeConnection(java.sql.Connection conn)
Free the connection |
java.sql.Connection |
getConnection()
Get a connection |
ConnectionPool |
getConnectionPool()
Returns the connection pool |
int |
getCurrentConnections()
Gets the number of opened connections |
org.apache.log4j.Logger |
getLogger()
Gets the pool logger |
int |
getMaxConnections()
Gets the max connections |
java.lang.String |
getPoolName()
Returns the pool name |
java.lang.String |
getPoolProvider()
Gets the pool manager provider |
void |
init(java.util.Hashtable<java.lang.String,java.lang.String> htParamsConnectionPool)
Initializes the connection pool |
void |
release()
Release the pool |
void |
setLogger(org.apache.log4j.Logger logger)
Sets the logger |
void |
setPoolName(java.lang.String strPoolName)
Sets the pool name |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LuteceConnectionService()
Method Detail |
---|
public void setPoolName(java.lang.String strPoolName)
setPoolName
in interface ConnectionService
strPoolName
- The pool namepublic java.lang.String getPoolName()
getPoolName
in interface ConnectionService
public void setLogger(org.apache.log4j.Logger logger)
setLogger
in interface ConnectionService
logger
- The loggerpublic org.apache.log4j.Logger getLogger()
getLogger
in interface ConnectionService
public void init(java.util.Hashtable<java.lang.String,java.lang.String> htParamsConnectionPool)
init
in interface ConnectionService
htParamsConnectionPool
- Pool parameterspublic java.sql.Connection getConnection()
getConnection
in interface ConnectionService
public void freeConnection(java.sql.Connection conn)
freeConnection
in interface ConnectionService
conn
- The connection to releasepublic void release()
release
in interface ConnectionService
public ConnectionPool getConnectionPool()
public int getCurrentConnections()
getCurrentConnections
in interface ConnectionService
public int getMaxConnections()
getMaxConnections
in interface ConnectionService
public java.lang.String getPoolProvider()
getPoolProvider
in interface ConnectionService
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |