Class JdbcUtils


  • public abstract class JdbcUtils
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      JdbcUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void closeConnection​(java.sql.Connection con)
      Close the given JDBC Connection and ignore any thrown exception.
      static void closeStatement​(java.sql.Statement stmt)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JdbcUtils

        public JdbcUtils()
    • Method Detail

      • closeConnection

        public static void closeConnection​(java.sql.Connection con)
        Close the given JDBC Connection and ignore any thrown exception. This is useful for typical finally blocks in manual JDBC code.
        Parameters:
        con - Connection which shall be closed
      • closeStatement

        public static void closeStatement​(java.sql.Statement stmt)