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.
        c - connection to close
      • closeStatementQuietly

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

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