- java.lang.Object
-
- io.ebean.util.JdbcClose
-
public final class JdbcClose extends Object
Utility for closing raw Jdbc resources.
-
-
Constructor Summary
Constructors Constructor Description JdbcClose()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidcancel(Statement stmt)Cancels the statementstatic voidclose(Connection connection)Close the connection logging if an error occurs.static voidclose(ResultSet resultSet)Close the resultSet logging if an error occurs.static voidclose(Statement statement)Close the resultSet logging if an error occurs.static voidrollback(Connection connection)Rollback the connection logging if an error occurs.
-
-
-
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
-
-