org.apache.derby.client.am
Class SqlWarning

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.apache.derby.client.am.SqlException
              extended by org.apache.derby.client.am.SqlWarning
All Implemented Interfaces:
java.io.Serializable, Diagnosable

public class SqlWarning
extends SqlException
implements Diagnosable

This represents a warning versus a full exception. As with SqlException, this is an internal representation of java.sql.SQLWarning. Public JDBC methods need to convert an internal SqlWarning to a SQLWarning using getSQLWarning()

See Also:
Serialized Form

Field Summary
protected  SqlWarning nextWarning_
           
 
Fields inherited from class org.apache.derby.client.am.SqlException
cachedMessage_, causeString_, CLIENT_MESSAGE_RESOURCE_NAME, DEFAULT_ERRCODE, errorcode_, exceptionFactory, message_, nextException_, sqlca_, sqlstate_, throwable_, wrappedException_
 
Constructor Summary
SqlWarning(LogWriter logwriter, ClientMessageId msgid)
           
SqlWarning(LogWriter logwriter, ClientMessageId msgid, java.lang.Object arg1)
           
SqlWarning(LogWriter logwriter, ClientMessageId msgid, java.lang.Object[] args)
           
SqlWarning(LogWriter logwriter, ClientMessageId msgid, java.lang.Object[] args, java.lang.Throwable cause)
           
SqlWarning(LogWriter logwriter, ClientMessageId msgid, java.lang.Object arg1, java.lang.Object arg2)
           
SqlWarning(LogWriter logwriter, ClientMessageId msgid, java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3)
           
SqlWarning(LogWriter logWriter, Sqlca sqlca)
           
 
Method Summary
 SqlWarning getNextWarning()
           
 java.sql.SQLWarning getSQLWarning()
          Get the java.sql.SQLWarning for this SqlWarning
 void setNextWarning(SqlWarning warning)
           
 
Methods inherited from class org.apache.derby.client.am.SqlException
copyAsUnchainedSQLException, getErrorCode, getMessage, getMessageUtil, getNextException, getSqlca, getSQLException, getSQLState, javaException, printTrace, setBatchPositionLabel, setExceptionFactory, setNextException, setNextException
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.derby.client.am.Diagnosable
getSqlca, printTrace
 

Field Detail

nextWarning_

protected SqlWarning nextWarning_
Constructor Detail

SqlWarning

public SqlWarning(LogWriter logwriter,
                  ClientMessageId msgid,
                  java.lang.Object[] args,
                  java.lang.Throwable cause)

SqlWarning

public SqlWarning(LogWriter logwriter,
                  ClientMessageId msgid,
                  java.lang.Object[] args)

SqlWarning

public SqlWarning(LogWriter logwriter,
                  ClientMessageId msgid)

SqlWarning

public SqlWarning(LogWriter logwriter,
                  ClientMessageId msgid,
                  java.lang.Object arg1)

SqlWarning

public SqlWarning(LogWriter logwriter,
                  ClientMessageId msgid,
                  java.lang.Object arg1,
                  java.lang.Object arg2)

SqlWarning

public SqlWarning(LogWriter logwriter,
                  ClientMessageId msgid,
                  java.lang.Object arg1,
                  java.lang.Object arg2,
                  java.lang.Object arg3)

SqlWarning

public SqlWarning(LogWriter logWriter,
                  Sqlca sqlca)
Method Detail

setNextWarning

public void setNextWarning(SqlWarning warning)

getNextWarning

public SqlWarning getNextWarning()

getSQLWarning

public java.sql.SQLWarning getSQLWarning()
Get the java.sql.SQLWarning for this SqlWarning


Built on Thu 2011-03-10 11:54:14+0000, from revision ???

Apache Derby V10.6 Internals - Copyright © 2004,2007 The Apache Software Foundation. All Rights Reserved.