package org.apache.tools.ant.taskdefs;

import java.sql.*;

public class SQLExecConnection implements SQLExec.ConnectionLoader{
    public SQLExecConnection(){}
    public Connection getConnection(String driver, String url, String userId, String password) throws ClassNotFoundException, SQLException{
        getClass().getClassLoader().loadClass(driver);
        return DriverManager.getConnection(url, userId, password);
    }
}
