|
deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.deegree.commons.utils.JDBCUtils
public final class JDBCUtils
This class contains static utility methods for working with JDBC.
| Constructor Summary | |
|---|---|
JDBCUtils()
|
|
| Method Summary | |
|---|---|
static void |
close(Connection conn)
Close the object, suppress all errors/exceptions. |
static void |
close(PreparedStatement stmt)
Close the object, suppress all errors/exceptions. |
static void |
close(ResultSet resultSet)
Close the object, suppress all errors/exceptions. |
static void |
close(ResultSet rs,
Statement stmt,
Connection conn,
org.slf4j.Logger log)
Tries to close each object from a ResultSet, Statement, Connection triple. |
static void |
close(Statement stmt)
Close the object, suppress all errors/exceptions. |
| 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 close(Connection conn)
conn - public static void close(ResultSet resultSet)
resultSet - public static void close(Statement stmt)
stmt - public static void close(PreparedStatement stmt)
stmt -
public static void close(ResultSet rs,
Statement stmt,
Connection conn,
org.slf4j.Logger log)
ResultSet, Statement, Connection triple.
Useful for cleaning up in finally clauses.
rs - ResultSet to be closedstmt - Statement to be closedconn - Connection to be closedlog - used to log error messages, may be null
|
deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||