Class PluginConnectionService
java.lang.Object
fr.paris.lutece.portal.service.database.PluginConnectionService
Class for Plugins connection services.
-
Constructor Summary
ConstructorsConstructorDescriptionPluginConnectionService(String strPoolName) Creates a new PluginConnectionService object. -
Method Summary
Modifier and TypeMethodDescriptionvoidfreeConnection(Connection conn) Releases a connection and replaces it in the poolReturns a connection to database from the pool nameGets the pool namefinal voidSets the pool to be used by this Connection Service
-
Constructor Details
-
PluginConnectionService
Creates a new PluginConnectionService object.- Parameters:
strPoolName- Rhe name of the pool
-
-
Method Details
-
setPool
Sets the pool to be used by this Connection Service- Parameters:
strPoolName- The name of the pool
-
getConnection
Returns a connection to database from the pool name- Returns:
- a connection to database from the pool
-
freeConnection
Releases a connection and replaces it in the pool- Parameters:
conn- The connection to realease
-
getPoolName
Gets the pool name- Returns:
- the pool name
-