Statement.getWarnings
Interface Overview | Interface Members | This Package | All Packages
Syntax
public abstract SQLWarning getWarnings() throws SQLException
Returns
the first SQLWarning or null
Description
The first warning reported by calls on this Statement is returned. A Statment's execute methods clear its SQLWarning chain. Subsequent Statement warnings will be chained to this SQLWarning.
The warning chain is automatically cleared each time a statement is (re)executed.
Note: If you are processing a ResultSet then any warnings associated with ResultSet reads will be chained on the ResultSet object.
Exceptions
SQLException if a database-access error occurs.