public class JDBCConnectionPool extends Object
| Constructor and Description |
|---|
JDBCConnectionPool(JDBCConnectionFactory factory,
GenericObjectPoolConfig cfg) |
JDBCConnectionPool(JDBCConnectionFactory factory,
org.apache.commons.pool.impl.GenericObjectPool.Config cfg)
Deprecated.
Database connection pool now uses version 2 of Apache Commons Pool, so please use
JDBCConnectionPool(JDBCConnectionFactory, GenericObjectPoolConfig) This method converts
GenericObjectPool.Config to corresponding GenericObjectPool. |
| Modifier and Type | Method and Description |
|---|---|
Connection |
borrowConnection() |
boolean |
cannotConnect() |
void |
close() |
void |
disableOracleStatementCaching() |
void |
enableOracleStatementCaching(int cacheSize) |
int |
getMaxActive() |
int |
getMaxPhysicalOpen() |
int |
getNumActive() |
int |
getNumIdle() |
int |
getNumPhysicalOpen() |
void |
invalidateConnection(Connection conn) |
boolean |
isPoolClosed() |
void |
resetOracleStatementCaching() |
protected void |
resetStats() |
void |
returnConnection(Connection conn) |
void |
setDumpStackOnConnectionError(boolean enable) |
String |
toString() |
public JDBCConnectionPool(JDBCConnectionFactory factory, GenericObjectPoolConfig cfg)
@Deprecated public JDBCConnectionPool(JDBCConnectionFactory factory, org.apache.commons.pool.impl.GenericObjectPool.Config cfg)
JDBCConnectionPool(JDBCConnectionFactory, GenericObjectPoolConfig) This method converts
GenericObjectPool.Config to corresponding GenericObjectPool.public void setDumpStackOnConnectionError(boolean enable)
public int getNumPhysicalOpen()
public int getMaxPhysicalOpen()
protected void resetStats()
public boolean cannotConnect()
public boolean isPoolClosed()
public Connection borrowConnection() throws Exception
Exceptionpublic void returnConnection(Connection conn)
public void invalidateConnection(Connection conn)
public final void close()
public int getNumActive()
public int getMaxActive()
public int getNumIdle()
public void enableOracleStatementCaching(int cacheSize)
public void resetOracleStatementCaching()
public void disableOracleStatementCaching()
Copyright © 2017 SAP SE. All Rights Reserved.