Class SQLUtils


  • public final class SQLUtils
    extends Object
    Contains a variety of functions for handling SQL Connections and Queries.
    • Method Detail

      • closeConnectionQuietly

        public static void closeConnectionQuietly​(Connection c)
        Closes a connection without logging an error.
        Parameters:
        c - connection to close
      • closeStatementQuietly

        public static void closeStatementQuietly​(Statement s)
        Closes a Statement, ignoring errors.
        Parameters:
        s - Statement to close
      • closeResultSetQuietly

        public static void closeResultSetQuietly​(ResultSet s)
        Closes a ResultSet, ignoring errors.
        Parameters:
        s - ResultSet to close