Interface ConnectionService

    • Method Detail

      • getConnection

        Connection getConnection()
        Get a connection
        Returns:
        A database connection
      • freeConnection

        void freeConnection​(Connection conn)
        Release the connection
        Parameters:
        conn - The connection to release
      • release

        void release()
        Free all connections
      • init

        void init​(Map<String,​String> htParamsConnectionPool)
        Initialize pool parameters
        Parameters:
        htParamsConnectionPool - Parameters
      • setPoolName

        void setPoolName​(String strPoolName)
        Define the pool name
        Parameters:
        strPoolName - The pool name
      • getPoolName

        String getPoolName()
        Gets the pool name
        Returns:
        The pool name
      • setLogger

        void setLogger​(org.apache.logging.log4j.Logger logger)
        Define the logger
        Parameters:
        logger - The logger
      • getLogger

        org.apache.logging.log4j.Logger getLogger()
        Gets the logger
        Returns:
        The logger
      • getCurrentConnections

        int getCurrentConnections()
        Gets the number of opened connections
        Returns:
        The current connections count
      • getMaxConnections

        int getMaxConnections()
        Gets the max connections
        Returns:
        The max connections count
      • getPoolProvider

        String getPoolProvider()
        Gets the pool manager provider
        Returns:
        The pool manager
      • getDataSource

        DataSource getDataSource()
        Get datasource
        Returns:
        A data source object