Class java.sql.SQLWarning
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class java.sql.SQLWarning

Object
   |
   +----Throwable
           |
           +----Exception
                   |
                   +----SQLException
                           |
                           +----java.sql.SQLWarning

public class SQLWarning
extends SQLException

The SQLWarning class provides information on a database access warnings. Warnings are silently chained to the object whose method caused it to be reported.

See Also:
getWarnings, getWarnings, getWarnings

Constructor Index

 o java.sql.SQLWarning(String, String, int)
Construct a fully specified SQLWarning.
 o java.sql.SQLWarning(String, String)
Construct an SQLWarning with a reason and SQLState; vendorCode defaults to 0.
 o java.sql.SQLWarning(String)
Construct an SQLWarning with a reason; SQLState defaults to null and vendorCode defaults to 0.
 o java.sql.SQLWarning()
Construct an SQLWarning ; reason defaults to null, SQLState defaults to null and vendorCode defaults to 0.

Method Index

 o getNextWarning()
Get the warning chained to this one
 o setNextWarning(SQLWarning)
Add an SQLWarning to the end of the chain.

Constructors

 o SQLWarning
public SQLWarning(String reason,
                  String SQLstate,
                  int vendorCode)
Construct a fully specified SQLWarning.

Parameters:
reason - a description of the warning
SQLState - an XOPEN code identifying the warning
vendorCode - a database vendor specific warning code
 o SQLWarning
public SQLWarning(String reason,
                  String SQLstate)
Construct an SQLWarning with a reason and SQLState; vendorCode defaults to 0.

Parameters:
reason - a description of the warning
SQLState - an XOPEN code identifying the warning
 o SQLWarning
public SQLWarning(String reason)
Construct an SQLWarning with a reason; SQLState defaults to null and vendorCode defaults to 0.

Parameters:
reason - a description of the warning
 o SQLWarning
public SQLWarning()
Construct an SQLWarning ; reason defaults to null, SQLState defaults to null and vendorCode defaults to 0.

Methods

 o getNextWarning
public java.sql.SQLWarning getNextWarning()
Get the warning chained to this one

Returns:
the next SQLException in the chain, null if none
 o setNextWarning
public void setNextWarning(SQLWarning w)
Add an SQLWarning to the end of the chain.

Parameters:
w - the new end of the SQLException chain

All Packages  Class Hierarchy  This Package  Previous  Next  Index