List of usage examples for org.apache.commons.dbcp ThreadPoolingDataSource setAccessToUnderlyingConnectionAllowed
public void setAccessToUnderlyingConnectionAllowed(boolean allow)
From source file:org.apache.cayenne.conf.CustomDBCPDataSourceBuilder.java
DataSource createDataSource() {
boolean connectionNoWrap = config.getBoolean(CONNECTION_NOWRAP, false);
ObjectPool connectionPool = createConnectionPool();
ThreadPoolingDataSource dataSource = new ThreadPoolingDataSource(connectionPool);
dataSource.setAccessToUnderlyingConnectionAllowed(connectionNoWrap);
return dataSource;
}