public class JdbcUtils extends Object
Modifier and Type | Method and Description |
---|---|
static void |
closeConnection(Connection connection)
Close the given JDBC Connection and ignore any thrown exception.
|
static void |
closeResultSet(ResultSet rs)
Close the given JDBC ResultSet and ignore any thrown exception.
|
static void |
closeStatement(Statement statement)
Close the given JDBC Statement and ignore any thrown exception.
|
public static void closeConnection(Connection connection)
connection
- the JDBC Connection to close (may be null)public static void closeStatement(Statement statement)
statement
- the JDBC Statement to close (may be null)public static void closeResultSet(ResultSet rs)
rs
- the JDBC ResultSet to close (may be null)Copyright © 2004–2016 The Apache Software Foundation. All rights reserved.