|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.core.util.db.DbUtility
public final class DbUtility
This class contains some database utility methods.
| Method Summary | |
|---|---|
static void |
close(Connection con,
Statement stmt,
ResultSet rs)
This is a utility method which closes the given resources without throwing exceptions. |
static void |
close(ResultSet rs)
This is a utility method which closes the given resources without throwing exceptions. |
static void |
logException(String message,
SQLException e)
Logs an SQL exception on error level, and debug level (more detail). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void close(ResultSet rs)
rs - the ResultSet to close, may be null
public static void close(Connection con,
Statement stmt,
ResultSet rs)
con - the Connection to close, may be nullstmt - the Statement to close, may be nullrs - the ResultSet to close, may be null
public static void logException(String message,
SQLException e)
message - the messagese - the exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||