Class ConnectionPool
- java.lang.Object
-
- org.silverpeas.core.persistence.jdbc.ConnectionPool
-
@Technical @Bean @Singleton public class ConnectionPool extends Object
A pool of JDBC connections. It encapsulates the underlying mechanism to manage a pool of connections to the data source used by Silverpeas.Currently, it wraps the connection pool spawned by the JEE application server for the data source used by Silverpeas.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ConnectionPool()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Connection
getConnection()
Return a connection from the Silverpeas data source.Connection
getDataSourceConnection()
Return a connection from the Silverpeas data source.
-
-
-
Method Detail
-
getConnection
public static Connection getConnection() throws SQLException
Return a connection from the Silverpeas data source.- Returns:
- a connection from the Silverpeas data source.
- Throws:
SQLException
- if an error occurs while getting an available connection.
-
getDataSourceConnection
public Connection getDataSourceConnection() throws SQLException
Return a connection from the Silverpeas data source.- Returns:
- a connection from the Silverpeas data source.
- Throws:
SQLException
- if an error occurs while getting an available connection.
-
-