Example usage for org.apache.commons.dbcp ThreadPoolingDataSource setAccessToUnderlyingConnectionAllowed

List of usage examples for org.apache.commons.dbcp ThreadPoolingDataSource setAccessToUnderlyingConnectionAllowed

Introduction

In this page you can find the example usage for org.apache.commons.dbcp ThreadPoolingDataSource setAccessToUnderlyingConnectionAllowed.

Prototype

public void setAccessToUnderlyingConnectionAllowed(boolean allow) 

Source Link

Document

Sets the value of the accessToUnderlyingConnectionAllowed property.

Usage

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;
}