package jp.sf.amateras.mirage.util;

import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.Statement;

public class JdbcUtil {

	public static void close(Connection conn){
		if(conn != null){
			try {
				conn.close();
			} catch(Exception ex){
			}
		}
	}

	public static void close(Statement stmt){
		if(stmt != null){
			try {
				stmt.close();
			} catch(Exception ex){
			}
		}
	}

	public static void close(ResultSet rs){
		if(rs != null){
			try {
				rs.close();
			} catch(Exception ex){
			}
		}
	}
}
