Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client
11g Release 1 (11.1.1)

E17503-02

oracle.adfnmc.java.sql
Class SQLWarning

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by oracle.adfnmc.AdfNmcException
                  extended by oracle.adfnmc.java.sql.SQLException
                      extended by oracle.adfnmc.java.sql.SQLWarning

public class SQLWarning
extends SQLException

An exception class that holds information about Database access warnings.


Field Summary
 
Fields inherited from class oracle.adfnmc.java.sql.SQLException
SQL_ERRORCODE_FILENOTFOUND
 
Fields inherited from class oracle.adfnmc.AdfNmcException
CLASS_INSTANCE, PRIORITY_HIGH, PRIORITY_LOW, PRIORITY_MEDIUM
 
Constructor Summary
SQLWarning(java.lang.Class callingClass, java.lang.String callingMethod)
          Creates an SQLWarning object.
SQLWarning(java.lang.Class callingClass, java.lang.String callingMethod, java.lang.String theReason)
          Creates an SQLWarning object.
SQLWarning(java.lang.Class callingClass, java.lang.String callingMethod, java.lang.String theReason, java.lang.String theSQLState)
          Creates an SQLWarning object.
SQLWarning(java.lang.Class callingClass, java.lang.String callingMethod, java.lang.String theReason, java.lang.String theSQLState, int theErrorCode)
          Creates an SQLWarning object.
 
Method Summary
 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 oracle.adfnmc.java.sql.SQLException
getErrorCode, getNextException, getSQLState, setNextException
 
Methods inherited from class oracle.adfnmc.AdfNmcException
addLogMessage, addLogMessage, getCallerInfo, getCause, getPriority, getStringContent, getStringContent, isFatal, printLogMessages, setFatal, setInnerException, setPriority, toLogString, toString
 
Methods inherited from class java.lang.Throwable
getMessage, printStackTrace
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SQLWarning

public SQLWarning(java.lang.Class callingClass,
                  java.lang.String callingMethod)
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.


SQLWarning

public SQLWarning(java.lang.Class callingClass,
                  java.lang.String callingMethod,
                  java.lang.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.

Parameters:
theReason -

SQLWarning

public SQLWarning(java.lang.Class callingClass,
                  java.lang.String callingMethod,
                  java.lang.String theReason,
                  java.lang.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

SQLWarning

public SQLWarning(java.lang.Class callingClass,
                  java.lang.String callingMethod,
                  java.lang.String theReason,
                  java.lang.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.

Parameters:
theReason -
theSQLState -
theErrorCode -
Method Detail

getNextWarning

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.

setNextWarning

public void setNextWarning(SQLWarning w)
Chains a supplied SQLWarning to this SQLWarning.

Parameters:
w - the SQLWarning to chain to this SQLWarning.

Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client
11g Release 1 (11.1.1)

E17503-02

Copyright © 2011, Oracle and/or its affiliates. All rights reserved.