Retrieving Warnings
by , 03-10-2012 at 08:00 AM (584 Views)
The SQLWarning objects are subclasses of SQLException. They are involved in dealings with database access warnings. Warning actually doesn’t stop the execution of program, as oppose to exceptions. They inform users that few things which are not present in execution plan are happening.
E.g:
- A privilege revoked didn’t revoke.
- An error occurred, during the requested disconnections.
A warning might be on:
- A connection object
- A ResultSet object
- A statement object
A getWarnings() method is being provided by every given class. These methods are used to get 1st warning by call, at the calling object. Call the method getNextWarning() to get the next warning in case method getWarnings() return warning.










Email Blog Entry
Size Reduced for Images in PDF &...
05-15-2013, 05:53 PM in Java Software