All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.undefinedlabs.scope.rules.sql.provider.internal.h2.JdbcConnectionTrackingChecker Maven / Gradle / Ivy

Go to download

Scope is a APM for tests to give engineering teams unprecedented visibility into their CI process to quickly identify, troubleshoot and fix failed builds. This artifact contains the classes to instrument the Java SQL package.

There is a newer version: 0.15.1-beta.2
Show newest version
package com.undefinedlabs.scope.rules.sql.provider.internal.h2;

import com.undefinedlabs.scope.rules.sql.provider.ConnectionTrackingChecker;

import java.sql.Connection;

public class JdbcConnectionTrackingChecker implements ConnectionTrackingChecker {

    public static final String JDBC_CONNECTION_CLASS_NAME = "org.h2.jdbc.JdbcConnection";

    @Override
    public boolean mustTrace(Connection connection) {
        return (connection != null) && JDBC_CONNECTION_CLASS_NAME.equalsIgnoreCase(connection.getClass().getName());
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy