|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.hibernate.util.JDBCExceptionReporter
public final class JDBCExceptionReporter
Nested Class Summary | |
---|---|
static class |
JDBCExceptionReporter.StandardWarningHandler
|
static interface |
JDBCExceptionReporter.WarningHandler
Contract for handling warnings |
static class |
JDBCExceptionReporter.WarningHandlerLoggingSupport
Basic support for JDBCExceptionReporter.WarningHandler implementations which log |
Field Summary | |
---|---|
static String |
DEFAULT_EXCEPTION_MSG
|
static String |
DEFAULT_WARNING_MSG
|
static org.slf4j.Logger |
log
|
static JDBCExceptionReporter.StandardWarningHandler |
STANDARD_WARNING_HANDLER
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final org.slf4j.Logger log
public static final String DEFAULT_EXCEPTION_MSG
public static final String DEFAULT_WARNING_MSG
public static JDBCExceptionReporter.StandardWarningHandler STANDARD_WARNING_HANDLER
Method Detail |
---|
public static void logAndClearWarnings(Connection connection)
Connection
and clearing them.
Calls handleAndClearWarnings(Connection, WarningHandler)
using STANDARD_WARNING_HANDLER
connection
- The JDBC connection potentially containing warningspublic static void handleAndClearWarnings(Connection connection, JDBCExceptionReporter.WarningHandler handler)
Connection
.
connection
- The JDBC connection potentially containing warningshandler
- The handler for each individual warning in the stack.walkWarnings(java.sql.SQLWarning, org.hibernate.util.JDBCExceptionReporter.WarningHandler)
public static void handleAndClearWarnings(Statement statement, JDBCExceptionReporter.WarningHandler handler)
Statement
.
statement
- The JDBC statement potentially containing warningshandler
- The handler for each individual warning in the stack.walkWarnings(java.sql.SQLWarning, org.hibernate.util.JDBCExceptionReporter.WarningHandler)
@Deprecated public static void logWarnings(SQLWarning warning)
walkWarnings(java.sql.SQLWarning, org.hibernate.util.JDBCExceptionReporter.WarningHandler)
instead
default message
warning
- The warning to log@Deprecated public static void logWarnings(SQLWarning warning, String message)
walkWarnings(java.sql.SQLWarning, org.hibernate.util.JDBCExceptionReporter.WarningHandler)
instead
warning
- The warning to logmessage
- The prologue messagepublic static void walkWarnings(SQLWarning warning, JDBCExceptionReporter.WarningHandler handler)
public static void logExceptions(SQLException ex)
public static void logExceptions(SQLException ex, String message)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |