@Test public void testCreateConnectionProxyOrRewrapIfJBossOrGlassfish() throws SQLException, IllegalAccessException { DriverManager.registerDriver(driver); final Connection connection = DriverManager.getConnection(H2_DATABASE_URL); jdbcWrapper.createConnectionProxyOrRewrapIfJBossOrGlassfish(connection); connection.close(); }
Connection createConnectionProxyOrRewrapIfJBossOrGlassfish(Connection connection) throws IllegalAccessException { if (jboss || glassfish) { rewrapConnection(connection); return connection; } return createConnectionProxy(connection); }
JdbcWrapper { Connection createConnectionProxyOrRewrapIfJBossOrGlassfish(Connection connection) throws IllegalAccessException { if (jboss || glassfish) { rewrapConnection(connection); return connection; } return createConnectionProxy(connection); } }
JdbcWrapper { Connection createConnectionProxyOrRewrapIfJBossOrGlassfish(Connection connection) throws IllegalAccessException { if (jboss || glassfish) { rewrapConnection(connection); return connection; } return createConnectionProxy(connection); } private  JdbcWrapper(Counter sqlCounter); }
JdbcWrapper { Connection createConnectionProxyOrRewrapIfJBossOrGlassfish(Connection connection) throws IllegalAccessException { if (jboss || glassfish) { rewrapConnection(connection); return connection; } return createConnectionProxy(connection); } private  JdbcWrapper(Counter sqlCounter); static int getUsedConnectionCount(); static int getActiveConnectionCount(); static long getTransactionCount(); static int getActiveThreadCount(); static int getRunningBuildCount(); static int getBuildQueueLength(); static long getBuildQueueWaitingDurationsSum(); static List<ConnectionInformations> getConnectionInformationsList(); Counter getSqlCounter(); static int getMaxConnectionCount(); static Map<String, Map<String, Object>> getBasicDataSourceProperties(); static Map<String, DataSource> getJndiAndSpringDataSources(); static void registerSpringDataSource(String name, DataSource dataSource); DataSource createDataSourceProxy(DataSource dataSource); DataSource createDataSourceProxy(String name, final DataSource dataSource); Connection createConnectionProxy(Connection connection); }
JdbcWrapper { Connection createConnectionProxyOrRewrapIfJBossOrGlassfish(Connection connection) throws IllegalAccessException { if (jboss || glassfish) { rewrapConnection(connection); return connection; } return createConnectionProxy(connection); } private  JdbcWrapper(Counter sqlCounter); static int getUsedConnectionCount(); static int getActiveConnectionCount(); static long getTransactionCount(); static int getActiveThreadCount(); static int getRunningBuildCount(); static int getBuildQueueLength(); static long getBuildQueueWaitingDurationsSum(); static List<ConnectionInformations> getConnectionInformationsList(); Counter getSqlCounter(); static int getMaxConnectionCount(); static Map<String, Map<String, Object>> getBasicDataSourceProperties(); static Map<String, DataSource> getJndiAndSpringDataSources(); static void registerSpringDataSource(String name, DataSource dataSource); DataSource createDataSourceProxy(DataSource dataSource); DataSource createDataSourceProxy(String name, final DataSource dataSource); Connection createConnectionProxy(Connection connection); static final JdbcWrapper SINGLETON; }