com.silverpeas.wysiwyg.dynamicvalue.pool
Class ConnectionPoolWithJDBC

java.lang.Object
  extended by com.silverpeas.wysiwyg.dynamicvalue.pool.ConnectionPoolWithJDBC
All Implemented Interfaces:
ConnectionPool

public class ConnectionPoolWithJDBC
extends Object
implements ConnectionPool

This class allow the creation of connection pool to access external resource from Silverpeas it's used for the dynamic value functionalities


Constructor Summary
ConnectionPoolWithJDBC()
          default constructor
 
Method Summary
 Connection getConnection()
          gets a JDBC connection
 ConnectionPoolInformation getPoolInformation()
           
 void setPoolInformation(ConnectionPoolInformation poolInfo)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectionPoolWithJDBC

public ConnectionPoolWithJDBC()
default constructor

Method Detail

getConnection

public Connection getConnection()
                         throws SQLException
Description copied from interface: ConnectionPool
gets a JDBC connection

Specified by:
getConnection in interface ConnectionPool
Returns:
a SQL Connection
Throws:
SQLException

getPoolInformation

public ConnectionPoolInformation getPoolInformation()
Specified by:
getPoolInformation in interface ConnectionPool
Returns:
the poolInfo

setPoolInformation

public void setPoolInformation(ConnectionPoolInformation poolInfo)
Specified by:
setPoolInformation in interface ConnectionPool
Parameters:
poolInfo - the poolInfo to set


Copyright © 2016 Silverpeas. All Rights Reserved.