Android
java.sql
public class

java.sql.SQLWarning

java.lang.Object
java.lang.Throwable Serializable
java.lang.Exception
java.sql.SQLException Serializable
java.sql.SQLWarning Serializable

An exception class that holds information about Database access warnings.

Known Direct Subclasses

Summary

Public Constructors

            SQLWarning()
Creates an SQLWarning object.
            SQLWarning(String theReason)
Creates an SQLWarning object.
            SQLWarning(String theReason, String theSQLState)
Creates an SQLWarning object.
            SQLWarning(String theReason, String theSQLState, int theErrorCode)
Creates an SQLWarning object.

Public Methods

          SQLWarning  getNextWarning()
Gets the SQLWarning chained to this SQLWarning object.
          void  setNextWarning(SQLWarning w)
Chains a supplied SQLWarning to this SQLWarning.
Methods inherited from class java.sql.SQLException
Methods inherited from class java.lang.Throwable
Methods inherited from class java.lang.Object

Details

Public Constructors

public SQLWarning()

Creates an SQLWarning object. The Reason string is set to null, the SQLState string is set to null and the Error Code is set to 0.

public SQLWarning(String theReason)

Creates an SQLWarning object. The Reason string is set to the given reason string, the SQLState string is set to null and the Error Code is set to 0.

public SQLWarning(String theReason, String theSQLState)

Creates an SQLWarning object. The Reason string is set to the given reason string, the SQLState string is set to the given SQLState string and the Error Code is set to 0.

Parameters

theReason the string to use as the Reason string
theSQLState the string to use as the SQLState string

public SQLWarning(String theReason, String theSQLState, int theErrorCode)

Creates an SQLWarning object. The Reason string is set to the given reason string, the SQLState string is set to the given SQLState string and the Error Code is set to the given ErrorCode value.

Public Methods

public SQLWarning getNextWarning()

Gets the SQLWarning chained to this SQLWarning object.

Returns

  • the SQLWarning chained to this SQLWarning. null if no SQLWarning is chained to this SQLWarning.

public void setNextWarning(SQLWarning w)

Chains a supplied SQLWarning to this SQLWarning.

Parameters

w the SQLWarning to chain to this SQLWarning.
Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:48