Package org.copperengine.core.db.utility
Class JdbcUtils
- java.lang.Object
-
- org.copperengine.core.db.utility.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)
-
-
-
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)
-
-