All Packages Class Hierarchy This Package Previous Next Index
Class java.sql.SQLWarning
java.lang.Object
|
+----java.lang.Throwable
|
+----java.lang.Exception
|
+----java.sql.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
-
SQLWarning()
- Construct an SQLWarning ; reason defaults to null, SQLState
defaults to null and vendorCode defaults to 0.
-
SQLWarning(String)
- Construct an SQLWarning with a reason; SQLState defaults to
null and vendorCode defaults to 0.
-
SQLWarning(String, String)
- Construct an SQLWarning with a reason and SQLState;
vendorCode defaults to 0.
-
SQLWarning(String, String, int)
- Construct a fully specified SQLWarning.
-
getNextWarning()
- Get the warning chained to this one
-
setNextWarning(SQLWarning)
- Add an SQLWarning to the end of the chain.
SQLWarning
method SQLWarning(reason=String, -
SQLstate=String, -
vendorCode=int) public
- 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
SQLWarning
method SQLWarning(reason=String, -
SQLstate=String) public
- 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
SQLWarning
method SQLWarning(reason=String) public
- Construct an SQLWarning with a reason; SQLState defaults to
null and vendorCode defaults to 0.
- Parameters:
- reason - a description of the warning
SQLWarning
method SQLWarning() public
- Construct an SQLWarning ; reason defaults to null, SQLState
defaults to null and vendorCode defaults to 0.
getNextWarning
method getNextWarning() returns SQLWarning public
- Get the warning chained to this one
- Returns:
- the next SQLException in the chain, null if none
setNextWarning
method setNextWarning(w=SQLWarning) public
- 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