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

Class JdbcClose


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

      • JdbcClose

        public JdbcClose()
    • Method Detail

      • 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