Package org.apache.commons.dbcp

Examples of org.apache.commons.dbcp.DelegatingConnection


        con1.close();
    }

    public void testManagedConnectionEqualInnermost() throws Exception {
        ds.setAccessToUnderlyingConnectionAllowed(true);
        DelegatingConnection con = (DelegatingConnection) ds.getConnection();
        Connection inner = con.getInnermostDelegate();
        ds.setAccessToUnderlyingConnectionAllowed(false);
        DelegatingConnection con2 = new DelegatingConnection(inner);
        assertTrue(con2.equals(con));
        assertTrue(con.innermostDelegateEquals(con2.getInnermostDelegate()));
        assertTrue(con2.innermostDelegateEquals(inner));
        assertTrue(con.equals(con2));
    }
View Full Code Here


                    datasourcesPool.put(dataSourceKey, bds);
                }
            }

            Connection connection = bds.getConnection();
            DelegatingConnection dc = (DelegatingConnection) connection;
            Connection underlyingOlapConnection = dc.getInnermostDelegate();
            OlapConnection olapConnection =
                unwrap(underlyingOlapConnection, OlapConnection.class);

            if (LOGGER.isDebugEnabled()) {
                LOGGER.debug(
View Full Code Here

TOP

Related Classes of org.apache.commons.dbcp.DelegatingConnection

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.