org.jboss.jca.adapters.jdbc.extensions.db2

## Class DB2ExceptionSorter

- java.lang.Object
- - org.jboss.jca.adapters.jdbc.extensions.db2.DB2ExceptionSorter

- All Implemented Interfaces:
    java.io.Serializable, ExceptionSorter

      public class DB2ExceptionSorter
      extends java.lang.Object
      implements ExceptionSorter, java.io.Serializable

  A DB2ExceptionSorter current only supporting the Type 4 Universal driver. Note, currently the DB2 JDBC developers guide only reports a few error codes. The code -9999 implies that the condition does not have a related code. TODO DB2 CLI
  Version:
    $Revision: 71554 $
  Author:
    Weston Price
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `DB2ExceptionSorter()` Constructor

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `isExceptionFatal(java.sql.SQLException e)` Evaluates a `java.sql.SQLException` to determine if the error was fatal
    `void` | `setConsider99999Fatal(java.lang.String value)` set via TRUE/FALSE Consider DB2's -99999 error code fatal, regardless of the associated message.
    `void` | `setFatal99999Messages(java.lang.String messages)` set via Connection is closed, Connection reset Which -99999 are considered fatal.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### DB2ExceptionSorter

          public DB2ExceptionSorter()

      Constructor

  - ### Method Detail

    - #### setConsider99999Fatal

          public void setConsider99999Fatal(java.lang.String value)

      set via TRUE/FALSE Consider DB2's -99999 error code fatal, regardless of the associated message.
      Parameters:
        `value` - The value

    - #### setFatal99999Messages

          public void setFatal99999Messages(java.lang.String messages)

      set via Connection is closed, Connection reset Which -99999 are considered fatal. "Connection is closed" is the default message.
      Parameters:
        `messages` - The messages to be considered fatal

    - #### isExceptionFatal

          public boolean isExceptionFatal(java.sql.SQLException e)

      Evaluates a `java.sql.SQLException` to determine if the error was fatal
      Specified by:
        `isExceptionFatal` in interface `ExceptionSorter`
      Parameters:
        `e` - the `java.sql.SQLException`
      Returns:
        whether or not the exception is vatal.

Copyright © 2014 IronJacamar (http://www.ironjacamar.org)