/*
 * Decompiled with CFR 0.152.
 * 
 * Could not load the following classes:
 *  org.apache.log4j.Logger
 */
package com.hst.common.util;

import com.hst.common.util.DBUtil;
import com.hst.common.util.OracleUtil;
import java.sql.Connection;
import java.sql.DriverManager;
import org.apache.log4j.Logger;

public class DBConnectUtil
extends DBUtil {
    private static Logger log = Logger.getLogger(OracleUtil.class);

    public static Connection getConnection(String url, String username, String password, String driverClass) throws Exception {
        Connection conn = null;
        try {
            DBConnectUtil.loadDriver(driverClass);
            conn = DriverManager.getConnection(url, username, password);
        }
        catch (Exception e) {
            log.error((Object)("\u83b7\u53d6\u8fde\u63a5\u4fe1\u606f\uff1aurl=" + url + ";username=" + username + ";password=" + password));
            log.error((Object)"\u6570\u636e\u5e93\u94fe\u63a5\u5931\u8d25", (Throwable)e);
            throw e;
        }
        return conn;
    }
}
