| 
 | Préférences Moteurs de recherche | |||||||||||||||||||
| JavaTM 2 Platform Std. Ed. v1.5.0 
java.sql
 | ||||||||||||||||||||
| Constructor Summary | |
|---|---|
| SQLWarning()Constructs a default SQLWarningobject. | |
| SQLWarning(String reason)Constructs an SQLWarningobject
 with the given value for a reason; SQLstate defaults tonull, and vendorCode defaults to 0. | |
| SQLWarning(String reason,
           String SQLstate)Constructs an SQLWarningobject
 with the given reason and SQLState;
 the vendorCode defaults to 0. | |
| SQLWarning(String reason,
           String SQLstate,
           int vendorCode)Constructs a fully-specified SQLWarningobject
 initialized with the given values. | |
| Method Summary | |
|---|---|
|  SQLWarning | getNextWarning()Retrieves the warning chained to this SQLWarningobject. | 
|  void | setNextWarning(SQLWarning w)Adds an SQLWarningobject to the end of the chain. | 
| Methods inherited from class java.sql.SQLException | 
|---|
| getErrorCode, getNextException, getSQLState, setNextException | 
| Methods inherited from class java.lang.Throwable | 
|---|
| fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Constructor Detail | 
|---|
public SQLWarning(String reason, String SQLstate, int vendorCode)
SQLWarning object
 initialized with the given values.
reason - a description of the warningSQLstate - an XOPEN code identifying the warningvendorCode - a database vendor-specific warning codepublic SQLWarning(String reason, String SQLstate)
SQLWarning object
 with the given reason and SQLState;
 the vendorCode defaults to 0.
reason - a description of the warningSQLstate - an XOPEN code identifying the warningpublic SQLWarning(String reason)
SQLWarning object
 with the given value for a reason; SQLstate defaults to
 null, and vendorCode defaults to 0.
reason - a description of the warningpublic SQLWarning()
SQLWarning object.
 The reason defaults to null, SQLState
 defaults to null, and vendorCode defaults to 0.
| Method Detail | 
|---|
public SQLWarning getNextWarning()
SQLWarning object.
SQLException in the chain; null if nonesetNextWarning(java.sql.SQLWarning)public void setNextWarning(SQLWarning w)
SQLWarning object to the end of the chain.
w - the new end of the SQLException chaingetNextWarning()