Name
SQLWarning
Synopsis
Represents a non-fatal warning condition. Warnings are silently chained to the object whose method produced them. You can retrieve warnings with the getWarnings()
method implemented by most JDBC classes.
public class SQLWarning extends SQLException { // Public Constructors public SQLWarning(); public SQLWarning( String reason); public SQLWarning( String reason, String SQLstate); public SQLWarning(String reason, String SQLstate, int vendorCode); // Public Instance Methods public SQLWarning getNextWarning(); // default:null public void setNextWarning( SQLWarning w); }
Subclasses
DataTruncation
Passed To
SQLWarning.setNextWarning()
Returned By
java.sql.Connection.getWarnings()
, java.sql.ResultSet.getWarnings()
, SQLWarning.getNextWarning()
, java.sql.Statement.getWarnings()
Get Java Enterprise in a Nutshell, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.