java.lang.Object
java.lang.Throwable
java.lang.Exception
java.sql.SQLException
java.sql.SQLWarning
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- DataTruncation
- See Also:
- Top Examples, Source Code,
Connection.getWarnings()
,
Statement.getWarnings()
,
ResultSet.getWarnings()
public SQLWarning getNextWarning()
- See Also:
setNextWarning(java.sql.SQLWarning)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
[1220]Handle SQL Warnings
By Anonymous on 2004/12/23 14:34:58 Rate
//obtaining SQLWarnings
try
{
...
stmt = con.createStatement ( ) ;
sqlw = con.getWarnings ( ) ;
while ( sqlw != null )
{
// handleSQLWarnings
sqlw = sqlw.getNextWarning ( ) ;
}
con.clearWarnings ( ) ;
stmt.executeUpdate ( sUpdate ) ;
sqlw = stmt.getWarnings ( ) ;
while ( sqlw != null )
{
// handleSQLWarnings
sqlw = sqlw.getNextWarning ( ) ;
}
} // end try
catch ( SQLException SQLe )
{
...
} // end catch
public void setNextWarning(SQLWarning w)
- See Also:
getNextWarning()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public SQLWarning()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public SQLWarning(String reason)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public SQLWarning(String reason,
String SQLstate)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public SQLWarning(String reason,
String SQLstate,
int vendorCode)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples