|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.axonframework.common.jdbc.JdbcUtils
public class JdbcUtils
Utility class for silently closing JDBC resources
Constructor Summary | |
---|---|
JdbcUtils()
|
Method Summary | |
---|---|
static void |
closeQuietly(Connection connection)
Close the given connection , if possible. |
static void |
closeQuietly(ResultSet resultSet)
Close the given resultSet , if possible. |
static void |
closeQuietly(Statement statement)
Close the given statement , if possible. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JdbcUtils()
Method Detail |
---|
public static void closeQuietly(ResultSet resultSet)
resultSet
, if possible. All exceptions are discarded.
resultSet
- The resource to close. May be null
.public static void closeQuietly(Statement statement)
statement
, if possible. All exceptions are discarded.
statement
- The resource to close. May be null
.public static void closeQuietly(Connection connection)
connection
, if possible. All exceptions are discarded.
connection
- The resource to close. May be null
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |