| Modifier and Type | Class and Description |
|---|---|
| public static class | |
| public static interface | JDBCExceptionReporter.WarningHandler
Contract for handling |
| public abstract static class | JDBCExceptionReporter.WarningHandlerLoggingSupport
Basic support for |
| Modifier and Type | Field and Description |
|---|---|
| public static final String | |
| public static final String | |
| public static final Logger | |
| public static JDBCExceptionReporter. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static void | handleAndClearWarnings(Connection
The JDBC connection potentially containing warnings connection, JDBCExceptionReporter.The handler for each individual warning in the stack. handlerGeneral purpose handling of warnings associated with a JDBC |
| public static void | handleAndClearWarnings(Statement
The JDBC statement potentially containing warnings statement, JDBCExceptionReporter.The handler for each individual warning in the stack. handlerGeneral purpose handling of warnings associated with a JDBC |
| public static void | logAndClearWarnings(Connection
The JDBC connection potentially containing warnings connection)Standard (legacy) behavior for logging warnings associated with a JDBC |
| public static void | |
| public static void | |
| public static void | logWarnings(SQLWarning
The warning to log warning)
Deprecated
Use
Log the given warning and all of its nested warnings, preceded with the walkWarnings instead
default message
|
| public static void | logWarnings(SQLWarning
The warning to log warning, String The prologue message message)
Deprecated
Use
Log the given warning and all of its nested warnings, preceded with the given message
walkWarnings instead
|
| public static void |
| DEFAULT_EXCEPTION_MSG | back to summary |
|---|---|
| public static final String DEFAULT_EXCEPTION_MSG | |
| DEFAULT_WARNING_MSG | back to summary |
|---|---|
| public static final String DEFAULT_WARNING_MSG | |
| log | back to summary |
|---|---|
| public static final Logger log | |
| STANDARD_WARNING_HANDLER | back to summary |
|---|---|
| public static JDBCExceptionReporter. | |
| JDBCExceptionReporter | back to summary |
|---|---|
| private JDBCExceptionReporter() | |
| handleAndClearWarnings | back to summary |
|---|---|
| public static void handleAndClearWarnings(Connection connection, JDBCExceptionReporter. General purpose handling of warnings associated with a JDBC
| |
| handleAndClearWarnings | back to summary |
|---|---|
| public static void handleAndClearWarnings(Statement statement, JDBCExceptionReporter. General purpose handling of warnings associated with a JDBC
| |
| logAndClearWarnings | back to summary |
|---|---|
| public static void logAndClearWarnings(Connection connection) Standard (legacy) behavior for logging warnings associated with a JDBC
Calls
| |
| logExceptions | back to summary |
|---|---|
| public static void logExceptions(SQLException ex) | |
| logExceptions | back to summary |
|---|---|
| public static void logExceptions(SQLException ex, String message) | |
| logWarnings | back to summary |
|---|---|
| public static void logWarnings(SQLWarning warning)
Deprecated Use Log the given warning and all of its nested warnings, preceded with the
| |
| logWarnings | back to summary |
|---|---|
| public static void logWarnings(SQLWarning warning, String message)
Deprecated Use Log the given warning and all of its nested warnings, preceded with the given message
| |
| walkWarnings | back to summary |
|---|---|
| public static void walkWarnings(SQLWarning warning, JDBCExceptionReporter. | |
| Modifier and Type | Field and Description |
|---|---|
| private final String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | doProcess()
Implements org. |
| protected void | logWarning(String
A description of the warning description, String The warning message message)Implements abstract org. warning
|
| public void | prepare(SQLWarning
The first warning in the stack. warning)Implements org. warning stack.
|
| introMessage | back to summary |
|---|---|
| private final String introMessage | |
| StandardWarningHandler | back to summary |
|---|---|
| public StandardWarningHandler(String introMessage) | |
| doProcess | back to summary |
|---|---|
| public boolean doProcess() Implements org. Doc from org. Should processing be done? Allows short-circuiting if not.
| |
| logWarning | back to summary |
|---|---|
| protected void logWarning(String description, String message) Implements abstract org. Doc from org. Delegate to log common details of a | |
| prepare | back to summary |
|---|---|
| public void prepare(SQLWarning warning) Implements org. Doc from org. Prepare for processing of a
Note that the warning here is also the first passed to
| |
warnings
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public void | |
| public void | prepare(SQLWarning
The first warning in the stack. warning)Prepare for processing of a |
| doProcess | back to summary |
|---|---|
| public boolean doProcess() Should processing be done? Allows short-circuiting if not.
| |
| handleWarning | back to summary |
|---|---|
| public void handleWarning(SQLWarning warning) Handle an individual warning in the stack.
| |
| prepare | back to summary |
|---|---|
| public void prepare(SQLWarning warning) Prepare for processing of a
Note that the warning here is also the first passed to
| |
WarningHandler implementations which log
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final void | handleWarning(SQLWarning
The warning to handle. warning)Implements org. |
| protected abstract void | logWarning(String
A description of the warning description, String The warning message message)Delegate to log common details of a |
| WarningHandlerLoggingSupport | back to summary |
|---|---|
| public WarningHandlerLoggingSupport() | |
| handleWarning | back to summary |
|---|---|
| public final void handleWarning(SQLWarning warning) Implements org. Doc from org. Handle an individual warning in the stack.
| |
| logWarning | back to summary |
|---|---|
| protected abstract void logWarning(String description, String message) Delegate to log common details of a | |