View RSS Feed

Java Database

Retrieving Warnings

Rating: 1 votes, 5.00 average.
by , 03-10-2012 at 09:00 AM (1047 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.

  • 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.

Submit "Retrieving Warnings" to Facebook Submit "Retrieving Warnings" to Digg Submit "Retrieving Warnings" to Submit "Retrieving Warnings" to StumbleUpon Submit "Retrieving Warnings" to Google