javax.sql.rowset
Class RowSetWarning

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by java.lang.Throwable sample code for java.lang.Throwable definition code for java.lang.Throwable 
      extended by java.lang.Exception sample code for java.lang.Exception definition code for java.lang.Exception 
          extended by java.sql.SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException 
              extended by javax.sql.rowset.RowSetWarning
All Implemented Interfaces:
Serializable sample code for java.io.Serializable definition code for java.io.Serializable

public class RowSetWarning
extends SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException

An extension of SQLException that provides information about database warnings set on RowSet objects. Warnings are silently chained to the object whose method call caused it to be reported. This class complements the SQLWarning class.

Rowset warnings may be retrieved from JdbcRowSet, CachedRowSetTM, WebRowSet, FilteredRowSet, or JoinRowSet implementations. To retrieve the first warning reported on any RowSet implementation, use the method getRowSetWarnings defined in the JdbcRowSet interface or the CachedRowSet interface. To retrieve a warning chained to the first warning, use the RowSetWarning method getNextWarning. To retrieve subsequent warnings, call getNextWarning on each RowSetWarning object that is returned.

The inherited methods getMessage, getSQLState, and getErrorCode retrieve information contained in a RowSetWarning object.

See Also:
Serialized Form

Constructor Summary
RowSetWarning sample code for javax.sql.rowset.RowSetWarning.RowSetWarning() definition code for javax.sql.rowset.RowSetWarning.RowSetWarning() ()
          Constructs a default RowSetWarning object.
RowSetWarning sample code for javax.sql.rowset.RowSetWarning.RowSetWarning(java.lang.String) definition code for javax.sql.rowset.RowSetWarning.RowSetWarning(java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  reason)
          Constructs a RowSetWarning object with the given value for the reason; SQLState defaults to null, and vendorCode defaults to 0.
RowSetWarning sample code for javax.sql.rowset.RowSetWarning.RowSetWarning(java.lang.String, java.lang.String) definition code for javax.sql.rowset.RowSetWarning.RowSetWarning(java.lang.String, java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  reason, String sample code for java.lang.String definition code for java.lang.String  SQLState)
          Constructs a RowSetWarning object initialized with the given values for the reason and SQLState.
RowSetWarning sample code for javax.sql.rowset.RowSetWarning.RowSetWarning(java.lang.String, java.lang.String, int) definition code for javax.sql.rowset.RowSetWarning.RowSetWarning(java.lang.String, java.lang.String, int) (String sample code for java.lang.String definition code for java.lang.String  reason, String sample code for java.lang.String definition code for java.lang.String  SQLState, int vendorCode)
          Constructs a fully specified RowSetWarning object initialized with the given values for the reason, SQLState and vendorCode.
 
Method Summary
 RowSetWarning sample code for javax.sql.rowset.RowSetWarning definition code for javax.sql.rowset.RowSetWarning getNextWarning sample code for javax.sql.rowset.RowSetWarning.getNextWarning() definition code for javax.sql.rowset.RowSetWarning.getNextWarning() ()
          Retrieves the warning chained to this RowSetWarning object.
 void setNextWarning sample code for javax.sql.rowset.RowSetWarning.setNextWarning(javax.sql.rowset.RowSetWarning) definition code for javax.sql.rowset.RowSetWarning.setNextWarning(javax.sql.rowset.RowSetWarning) (RowSetWarning sample code for javax.sql.rowset.RowSetWarning definition code for javax.sql.rowset.RowSetWarning  warning)
          Sets warning as the next warning, that is, the warning chained to this RowSetWarning object.
 
Methods inherited from class java.sql.SQLException sample code for java.sql.SQLException definition code for java.sql.SQLException
getErrorCode sample code for java.sql.SQLException.getErrorCode() definition code for java.sql.SQLException.getErrorCode() , getNextException sample code for java.sql.SQLException.getNextException() definition code for java.sql.SQLException.getNextException() , getSQLState sample code for java.sql.SQLException.getSQLState() definition code for java.sql.SQLException.getSQLState() , setNextException sample code for java.sql.SQLException.setNextException(java.sql.SQLException) definition code for java.sql.SQLException.setNextException(java.sql.SQLException)
 
Methods inherited from class java.lang.Throwable sample code for java.lang.Throwable definition code for java.lang.Throwable
fillInStackTrace sample code for java.lang.Throwable.fillInStackTrace() definition code for java.lang.Throwable.fillInStackTrace() , getCause sample code for java.lang.Throwable.getCause() definition code for java.lang.Throwable.getCause() , getLocalizedMessage sample code for java.lang.Throwable.getLocalizedMessage() definition code for java.lang.Throwable.getLocalizedMessage() , getMessage sample code for java.lang.Throwable.getMessage() definition code for java.lang.Throwable.getMessage() , getStackTrace sample code for java.lang.Throwable.getStackTrace() definition code for java.lang.Throwable.getStackTrace() , initCause sample code for java.lang.Throwable.initCause(java.lang.Throwable) definition code for java.lang.Throwable.initCause(java.lang.Throwable) , printStackTrace sample code for java.lang.Throwable.printStackTrace() definition code for java.lang.Throwable.printStackTrace() , printStackTrace sample code for java.lang.Throwable.printStackTrace(java.io.PrintStream) definition code for java.lang.Throwable.printStackTrace(java.io.PrintStream) , printStackTrace sample code for java.lang.Throwable.printStackTrace(java.io.PrintWriter) definition code for java.lang.Throwable.printStackTrace(java.io.PrintWriter) , setStackTrace sample code for java.lang.Throwable.setStackTrace(java.lang.StackTraceElement[]) definition code for java.lang.Throwable.setStackTrace(java.lang.StackTraceElement[]) , toString sample code for java.lang.Throwable.toString() definition code for java.lang.Throwable.toString()
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
clone sample code for java.lang.Object.clone() definition code for java.lang.Object.clone() , equals sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) , finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , hashCode sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 

Constructor Detail

RowSetWarning sample code for javax.sql.rowset.RowSetWarning(java.lang.String) definition code for javax.sql.rowset.RowSetWarning(java.lang.String)

public RowSetWarning(String sample code for java.lang.String definition code for java.lang.String  reason)
Constructs a RowSetWarning object with the given value for the reason; SQLState defaults to null, and vendorCode defaults to 0.

Parameters:
reason - a String object giving a description of the warning; if the String is null, this constructor behaves like the default (zero parameter) RowSetWarning constructor

RowSetWarning sample code for javax.sql.rowset.RowSetWarning() definition code for javax.sql.rowset.RowSetWarning()

public RowSetWarning()
Constructs a default RowSetWarning object. The reason defaults to null, SQLState defaults to null and vendorCode defaults to 0.


RowSetWarning sample code for javax.sql.rowset.RowSetWarning(java.lang.String, java.lang.String) definition code for javax.sql.rowset.RowSetWarning(java.lang.String, java.lang.String)

public RowSetWarning(String sample code for java.lang.String definition code for java.lang.String  reason,
                     String sample code for java.lang.String definition code for java.lang.String  SQLState)
Constructs a RowSetWarning object initialized with the given values for the reason and SQLState. The vendor code defaults to 0. If the reason or SQLState parameters are null, this constructor behaves like the default (zero parameter) RowSetWarning constructor.

Parameters:
reason - a String giving a description of the warning;
SQLState - an XOPEN code identifying the warning; if a non standard XOPEN SQLState is supplied, no exception is thrown.

RowSetWarning sample code for javax.sql.rowset.RowSetWarning(java.lang.String, java.lang.String, int) definition code for javax.sql.rowset.RowSetWarning(java.lang.String, java.lang.String, int)

public RowSetWarning(String sample code for java.lang.String definition code for java.lang.String  reason,
                     String sample code for java.lang.String definition code for java.lang.String  SQLState,
                     int vendorCode)
Constructs a fully specified RowSetWarning object initialized with the given values for the reason, SQLState and vendorCode. If the reason, or the SQLState parameters are null, this constructor behaves like the default (zero parameter) RowSetWarning constructor.

Parameters:
reason - a String giving a description of the warning;
SQLState - an XOPEN code identifying the warning; if a non standard XPOEN SQLState is supplied, no exception is thrown.
vendorCode - a database vendor-specific warning code
Method Detail

getNextWarning sample code for javax.sql.rowset.RowSetWarning.getNextWarning() definition code for javax.sql.rowset.RowSetWarning.getNextWarning()

public RowSetWarning sample code for javax.sql.rowset.RowSetWarning definition code for javax.sql.rowset.RowSetWarning  getNextWarning()
Retrieves the warning chained to this RowSetWarning object.

Returns:
the RowSetWarning object chained to this one; if no RowSetWarning object is chained to this one, null is returned (default value)
See Also:
setNextWarning(javax.sql.rowset.RowSetWarning) sample code for javax.sql.rowset.RowSetWarning.setNextWarning(javax.sql.rowset.RowSetWarning) definition code for javax.sql.rowset.RowSetWarning.setNextWarning(javax.sql.rowset.RowSetWarning)

setNextWarning sample code for javax.sql.rowset.RowSetWarning.setNextWarning(javax.sql.rowset.RowSetWarning) definition code for javax.sql.rowset.RowSetWarning.setNextWarning(javax.sql.rowset.RowSetWarning)

public void setNextWarning(RowSetWarning sample code for javax.sql.rowset.RowSetWarning definition code for javax.sql.rowset.RowSetWarning  warning)
Sets warning as the next warning, that is, the warning chained to this RowSetWarning object.

Parameters:
warning - the RowSetWarning object to be set as the next warning; if the RowSetWarning is null, this represents the finish point in the warning chain
See Also:
getNextWarning() sample code for javax.sql.rowset.RowSetWarning.getNextWarning() definition code for javax.sql.rowset.RowSetWarning.getNextWarning()