com.openexchange.admin.storage.sqlStorage
Class OXAdminPoolDBPool

java.lang.Object
  extended by com.openexchange.admin.storage.sqlStorage.OXAdminPoolDBPool
All Implemented Interfaces:
OXAdminPoolInterface

public class OXAdminPoolDBPool
extends Object
implements OXAdminPoolInterface


Constructor Summary
OXAdminPoolDBPool(PropertyHandler prop)
           
 
Method Summary
 Connection getConnectionForConfigDB()
           
 Connection getConnectionForContext(int contextId)
           
 Connection getConnectionForContextNoTimeout(int contextId)
           
 boolean pushConnectionForConfigDB(Connection con)
           
 boolean pushConnectionForContext(int contextId, Connection con)
           
 boolean pushConnectionForContextNoTimeout(int contextId, Connection con)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OXAdminPoolDBPool

public OXAdminPoolDBPool(PropertyHandler prop)
Method Detail

getConnectionForConfigDB

public Connection getConnectionForConfigDB()
                                    throws PoolException
Specified by:
getConnectionForConfigDB in interface OXAdminPoolInterface
Throws:
PoolException

getConnectionForContext

public Connection getConnectionForContext(int contextId)
                                   throws PoolException
Specified by:
getConnectionForContext in interface OXAdminPoolInterface
Throws:
PoolException

getConnectionForContextNoTimeout

public Connection getConnectionForContextNoTimeout(int contextId)
                                            throws PoolException
Specified by:
getConnectionForContextNoTimeout in interface OXAdminPoolInterface
Throws:
PoolException

pushConnectionForConfigDB

public boolean pushConnectionForConfigDB(Connection con)
                                  throws PoolException
Specified by:
pushConnectionForConfigDB in interface OXAdminPoolInterface
Throws:
PoolException

pushConnectionForContext

public boolean pushConnectionForContext(int contextId,
                                        Connection con)
                                 throws PoolException
Specified by:
pushConnectionForContext in interface OXAdminPoolInterface
Throws:
PoolException

pushConnectionForContextNoTimeout

public boolean pushConnectionForContextNoTimeout(int contextId,
                                                 Connection con)
                                          throws PoolException
Specified by:
pushConnectionForContextNoTimeout in interface OXAdminPoolInterface
Throws:
PoolException