Spec-Zone .ru
спецификации, руководства, описания, API
|
|
JavaTM 2 Platform Standard Edition |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Throwable | +--java.lang.Exception | +--java.sql.SQLException | +--java.sql.SQLWarning
An exception that provides information on database access warnings. Warnings are silently chained to the object whose method caused it to be reported.
Connection.getWarnings()
,
Statement.getWarnings()
,
ResultSet.getWarnings()
, Serialized FormConstructor Summary | |
SQLWarning()
Constructs a default SQLWarning object. |
|
SQLWarning(String reason)
Constructs an SQLWarning object
with the given value for a reason; SQLState defaults to
null, and vendorCode defaults to 0. |
|
SQLWarning(String reason,
String SQLstate)
Constructs an SQLWarning object
with the given reason and SQLState;
the vendorCode defaults to 0. |
|
SQLWarning(String reason,
String SQLstate,
int vendorCode)
Constructs a fully-specified SQLWarning object
initialized with the given values. |
Method Summary | |
SQLWarning |
getNextWarning()
Retrieves the warning chained to this SQLWarning object. |
void |
setNextWarning(SQLWarning w)
Adds an SQLWarning object 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,
getLocalizedMessage,
getMessage,
printStackTrace,
printStackTrace,
printStackTrace,
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.public void setNextWarning(SQLWarning w)
SQLWarning
object to the end of the chain.w
- the new end of the SQLException
chain
|
JavaTM 2 Platform Standard Edition |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |