What JDBC objects generate SQLWarnings?- Connections, Statements and ResultSets generate SQLWarnings through getWarnings method.
- NOTE: The prior ResultSet warnings are cleared on each new read and prior Statement warnings are cleared with each new execution through clearWarnings method.
- These objects can be invoked after the execution of the SQL statements.
The following information is provided in the SQLWarning object:
1. A description of the warning or null is contained in a string object. 2. SQLSTATE or null contained in a string object. 3. Error code contained in an int value. 4. Pointer to the next SQLWarning or null.
|