Class Closer

java.lang.Object
de.businesscode.util.jdbc.Closer

public class Closer extends Object
closes JDBC objects
  • Constructor Details

    • Closer

      public Closer()
  • Method Details

    • closeAllSQLObjects

      public static void closeAllSQLObjects(Object... closables)
      closes objects of following types: Statement ResultSet Connection ignores thrown exceptions. If a close operation is aborted by exception whilst iterating given objects, the queue just keeps being processed with next object.
      Parameters:
      closables - to close, if array is provided its items are allowed to be null
      Throws:
      IllegalArgumentException - if object of unsupported class provided