Package de.hybris.platform.jdbcwrapper
Class JDBCConnectionPool
java.lang.Object
de.hybris.platform.jdbcwrapper.JDBCConnectionPool
- Direct Known Subclasses:
ConnectionErrorCheckingJDBCConnectionPool
-
Constructor Summary
ConstructorsConstructorDescriptionJDBCConnectionPool(JDBCConnectionFactory factory, org.apache.commons.pool.impl.GenericObjectPool.Config cfg) Deprecated, for removal: This API element is subject to removal in a future version.JDBCConnectionPool(JDBCConnectionFactory factory, org.apache.commons.pool2.impl.GenericObjectPoolConfig cfg) -
Method Summary
Modifier and TypeMethodDescriptionbooleanfinal voidclose()voidvoidenableOracleStatementCaching(int cacheSize) intintintintintintvoidbooleanvoidprotected voidvoidreturnConnection(Connection conn) voidsetDumpStackOnConnectionError(boolean enable) toString()
-
Constructor Details
-
JDBCConnectionPool
public JDBCConnectionPool(JDBCConnectionFactory factory, org.apache.commons.pool2.impl.GenericObjectPoolConfig cfg) -
JDBCConnectionPool
@Deprecated(since="ages", forRemoval=true) public JDBCConnectionPool(JDBCConnectionFactory factory, org.apache.commons.pool.impl.GenericObjectPool.Config cfg) Deprecated, for removal: This API element is subject to removal in a future version.since ages - Database connection pool now uses version 2 of Apache Commons Pool, so please useJDBCConnectionPool(JDBCConnectionFactory, GenericObjectPoolConfig)This method converts GenericObjectPool.Config to corresponding GenericObjectPool.
-
-
Method Details
-
setDumpStackOnConnectionError
public void setDumpStackOnConnectionError(boolean enable) -
getNumPhysicalOpen
public int getNumPhysicalOpen() -
getNumReadOnlyOpen
public int getNumReadOnlyOpen() -
getMaxPhysicalOpen
public int getMaxPhysicalOpen() -
resetStats
protected void resetStats() -
cannotConnect
public boolean cannotConnect() -
isPoolClosed
public boolean isPoolClosed() -
borrowConnection
- Throws:
Exception
-
returnConnection
-
invalidateConnection
-
close
public final void close() -
toString
-
getNumActive
public int getNumActive() -
getMaxActive
public int getMaxActive() -
getNumIdle
public int getNumIdle() -
enableOracleStatementCaching
public void enableOracleStatementCaching(int cacheSize) -
resetOracleStatementCaching
public void resetOracleStatementCaching() -
disableOracleStatementCaching
public void disableOracleStatementCaching()
-
JDBCConnectionPool(JDBCConnectionFactory, GenericObjectPoolConfig)This method converts GenericObjectPool.Config to corresponding GenericObjectPool.