Module io.ebean.api
Package io.ebean.util

Class JdbcClose

java.lang.Object
io.ebean.util.JdbcClose

public final class JdbcClose extends Object
Utility for closing raw Jdbc resources.
  • Constructor Details

    • JdbcClose

      public JdbcClose()
  • Method Details

    • close

      public static void close(Statement statement)
      Close the resultSet logging if an error occurs.
    • close

      public static void close(ResultSet resultSet)
      Close the resultSet logging if an error occurs.
    • close

      public static void close(Connection connection)
      Close the connection logging if an error occurs.
    • rollback

      public static void rollback(Connection connection)
      Rollback the connection logging if an error occurs.
    • cancel

      public static void cancel(Statement stmt)
      Cancels the statement