SQLWarnings.
If an SQLWarning is reported, the operation completed, so we will need to explicitly roll it back if we're not happy when looking at the warning. We might choose to ignore (and log) the warning, or to wrap and throw it in the shape of this SQLWarningException instead.
org.springframework.jdbc.core.JdbcTemplate#setIgnoreWarnings
| Access | Constructor and Description |
|---|---|
| public | SQLWarningException(String
the detail message msg, SQLWarning the JDBC warning ex)Constructor for SQLWarningException. |
| Modifier and Type | Method and Description |
|---|---|
| public SQLWarning | |
| public SQLWarning | SQLWarning()
Deprecated
since 5.3.29. as of 5.3.29, in favor of
Return the underlying getSQLWarning()
SQLWarning.
|
| SQLWarningException | back to summary |
|---|---|
| public SQLWarningException(String msg, SQLWarning ex) Constructor for SQLWarningException.
| |
| getSQLWarning | back to summary |
|---|---|
| public SQLWarning getSQLWarning() Return the underlying
| |
| SQLWarning | back to summary |
|---|---|
| public SQLWarning SQLWarning()
Return the underlying
| |