public class JdbcUtils extends Object
| Constructor and Description |
|---|
JdbcUtils() |
| Modifier and Type | Method and Description |
|---|---|
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. |
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.Copyright © 2010-2014. All Rights Reserved.