Mimer JDBC/MIDP 2.12

com.mimer.jdbc
Class SQLWarning

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--com.mimer.jdbc.SQLException
                    |
                    +--com.mimer.jdbc.SQLWarning
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
DataTruncation

public class SQLWarning
extends SQLException

An exception that provides information on database access warnings. Warnings are silently chained to the object whose method caused it to be reported.

See Also:
Connection.getWarnings(), Statement.getWarnings(), ResultSet.getWarnings(), Serialized Form

Constructor Summary
SQLWarning()
          Constructs a default SQLWarning object.
SQLWarning(java.lang.String reason)
          Constructs an SQLWarning object with the given value for a reason; SQLState defaults to null, and vendorCode defaults to 0.
SQLWarning(java.lang.String reason, java.lang.String SQLstate)
          Constructs an SQLWarning object with the given reason and SQLState; the vendorCode defaults to 0.
SQLWarning(java.lang.String reason, java.lang.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 com.mimer.jdbc.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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SQLWarning

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


SQLWarning

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

Parameters:
reason - a description of the warning

SQLWarning

public SQLWarning(java.lang.String reason,
                  java.lang.String SQLstate)
Constructs an SQLWarning object with the given reason and SQLState; the vendorCode defaults to 0.

Parameters:
reason - a description of the warning

SQLWarning

public SQLWarning(java.lang.String reason,
                  java.lang.String SQLstate,
                  int vendorCode)
Constructs a fully-specified SQLWarning object initialized with the given values.

Parameters:
reason - a description of the warning
vendorCode - a database vendor-specific warning code
Method Detail

getNextWarning

public SQLWarning getNextWarning()
Retrieves the warning chained to this SQLWarning object.

Returns:
the next SQLException in the chain; null if none

setNextWarning

public void setNextWarning(SQLWarning w)
Adds an SQLWarning object to the end of the chain.

Parameters:
w - the new end of the SQLException chain

Mimer JDBC/MIDP 2.12

Submit a comment or suggestion Version 2.12 of Mimer JDBC for the CLDC/MID Profile Specification
Copyright Upright Database Technology AB, Box 1713, SE-751 47 UPPSALA, Sweden. All Rights Reserved.