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

com.github.dbunit.rules.leak.OracleLeakHunter Maven / Gradle / Ivy

package com.github.dbunit.rules.leak;

import java.sql.Connection;

/**
 * Created by pestano on 07/09/16.
 */
class OracleLeakHunter extends AbstractLeakHunter {


    private final String sql = "SELECT COUNT(*) FROM v$session WHERE status = 'INACTIVE'";

    Connection connection;

    public OracleLeakHunter(Connection connection){
        this.connection = connection;
    }

    @Override
    protected String leakCountSql() {
        return sql;
    }

    @Override
    protected Connection getConnection() {
        return connection;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy