SQLException that provides information
about database warnings set on RowSet objects.
Warnings are silently chained to the object whose method call
caused it to be reported.
This class complements the SQLWarning class.
Rowset warnings may be retrieved from JdbcRowSet,
CachedRowSet,
WebRowSet, FilteredRowSet, or JoinRowSet
implementations. To retrieve the first warning reported on any
RowSet
implementation, use the method getRowSetWarnings defined
in the JdbcRowSet interface or the CachedRowSet
interface. To retrieve a warning chained to the first warning, use the
RowSetWarning method
getNextWarning. To retrieve subsequent warnings, call
getNextWarning on each RowSetWarning object that is
returned.
The inherited methods getMessage, getSQLState,
and getErrorCode retrieve information contained in a
RowSetWarning object.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final long |
| Access | Constructor and Description |
|---|---|
| public | RowSetWarning(String
a reason)String object giving a description
of the warning; if the String is null,
this constructor behaves like the default (zero parameter)
RowSetWarning constructorConstructs a |
| public | |
| public | RowSetWarning(String
a reason, String String giving a description of the
warning;an XOPEN code identifying the warning; if a non standard
XOPEN SQLState is supplied, no exception is thrown. SQLState)Constructs a |
| public | RowSetWarning(String
a reason, String String giving a description of the
warning;an XOPEN code identifying the warning; if a non standard
XOPEN SQLState is supplied, no exception is thrown. SQLState, int a database vendor-specific warning code vendorCode)Constructs a fully specified |
| Modifier and Type | Method and Description |
|---|---|
| public RowSetWarning | Returns: theRowSetWarning object chained to this one; if no
RowSetWarning object is chained to this one,
null is returned (default value)Retrieves the warning chained to this |
| public void | setNextWarning(RowSetWarning
the warning)RowSetWarning object to be set as the
next warning; if the RowSetWarning is null, this
represents the finish point in the warning chainSets warning as the next warning, that is, the warning chained
to this |
| serialVersionUID | back to summary |
|---|---|
| pack-priv static final long serialVersionUID | |
| RowSetWarning | back to summary |
|---|---|
| public RowSetWarning(String reason) Constructs a
| |
| RowSetWarning | back to summary |
|---|---|
| public RowSetWarning() Constructs a default | |
| RowSetWarning | back to summary |
|---|---|
| public RowSetWarning(String reason, String SQLState) Constructs a | |
| RowSetWarning | back to summary |
|---|---|
| public RowSetWarning(String reason, String SQLState, int vendorCode) Constructs a fully specified | |
| getNextWarning | back to summary |
|---|---|
| public RowSetWarning getNextWarning() Retrieves the warning chained to this
| |
| setNextWarning | back to summary |
|---|---|
| public void setNextWarning(RowSetWarning warning) Sets warning as the next warning, that is, the warning chained
to this
| |