Class PluginConnectionService

java.lang.Object
fr.paris.lutece.portal.service.database.PluginConnectionService

public class PluginConnectionService extends Object
Class for Plugins connection services.
  • Constructor Details

    • PluginConnectionService

      public PluginConnectionService(String strPoolName)
      Creates a new PluginConnectionService object.
      Parameters:
      strPoolName - Rhe name of the pool
  • Method Details

    • setPool

      public final void setPool(String strPoolName)
      Sets the pool to be used by this Connection Service
      Parameters:
      strPoolName - The name of the pool
    • getConnection

      public Connection getConnection()
      Returns a connection to database from the pool name
      Returns:
      a connection to database from the pool
    • freeConnection

      public void freeConnection(Connection conn)
      Releases a connection and replaces it in the pool
      Parameters:
      conn - The connection to realease
    • getPoolName

      public String getPoolName()
      Gets the pool name
      Returns:
      the pool name
    • getPoolProvider

      public String getPoolProvider()
      Gets the pool provider name
      Returns:
      the pool provider name