|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.paris.lutece.portal.service.database.AppConnectionService
public final class AppConnectionService
This class provides a Database Connection Service based on pooled connections.
Field Summary | |
---|---|
static java.lang.String |
NO_POOL_DEFINED
|
Method Summary | |
---|---|
static void |
freeConnection(java.sql.Connection conn)
Releases a connection and replaces it in the pool |
static java.sql.Connection |
getConnection()
Returns a connection to database from the pool name |
static PluginConnectionService |
getDefaultConnectionService()
Returns a default Plugin Connection Service |
static void |
getPoolList(ReferenceList list)
Gets the list of all pools defined in the db.properties file |
static PoolManager |
getPoolManager()
Gets a reference on the current Pool Manager |
static void |
init(java.lang.String strConfigPath,
java.lang.String strConfigFilename,
java.lang.String strPoolName)
Initializes the connection pool and sets the pool manager instance |
static void |
releasePool()
Releases all the connections on all the pools |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String NO_POOL_DEFINED
Method Detail |
---|
public static void init(java.lang.String strConfigPath, java.lang.String strConfigFilename, java.lang.String strPoolName) throws LuteceInitException
strConfigPath
- The relative Config pathstrConfigFilename
- The config file namestrPoolName
- The pool name
LuteceInitException
- If an error occuredpublic static java.sql.Connection getConnection()
public static void freeConnection(java.sql.Connection conn)
conn
- The connection to realeasepublic static void releasePool()
public static PoolManager getPoolManager()
public static void getPoolList(ReferenceList list)
list
- The Reference Listpublic static PluginConnectionService getDefaultConnectionService()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |