|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.shiro.util.JdbcUtils
public class JdbcUtils
A set of static helper methods for managing JDBC API objects.
Note: Some parts of this class were copied from the Spring Framework and then modified. They were copied here to prevent Spring dependencies in the Shiro core API. The original license conditions (Apache 2.0) have been maintained.
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |