com.ibm.commerce.base.helpers

Class ECJDBCOptimisticUpdateFailureException

  • java.lang.Object
    • java.lang.Throwable
      • java.lang.Exception
        • java.sql.SQLException
          • com.ibm.commerce.base.helpers.ECJDBCOptimisticUpdateFailureException
  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Iterable<java.lang.Throwable>


    public class ECJDBCOptimisticUpdateFailureException
    extends java.sql.SQLException

    This class indicates that a JDBC session EJB has encountered an optimistic update failure.

    When a JDBC session EJB attempts to update or delete a row, or select a row for update, it should throw an ECJDBCOptimisticUpdateFailureException if two conditions are met. The first is that it includes the optimistic predicate in the "where clause". The second it that it finds that no rows were found.

    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.lang.Object getKey()
      This method gets the key that identifies the instance of the row for which an update was attempted.
      OptCounterInfo getOptCounterInfo()
      This method gets a clone of the OptCounterInfo object that was used to create the SQL update statement.
      java.lang.String toString()
      This method returns a String representation of this object suitable for printing in trace information.
      • Methods inherited from class java.sql.SQLException

        getErrorCode, getNextException, getSQLState, iterator, setNextException
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
    • Constructor Detail

      • ECJDBCOptimisticUpdateFailureException

        public ECJDBCOptimisticUpdateFailureException(java.lang.Object aKey,
                                                      OptCounterInfo aOptCounterInfo)
        This is the constructor for this class. It calls the constructor from the superclass.
        Parameters:
        aKey - Identifies the instance of the row for which an update was attempted.
        aOptCounterInfo - The OptCounterInfo object that was used to create the SQL update statement.
    • Method Detail

      • getKey

        public java.lang.Object getKey()
        This method gets the key that identifies the instance of the row for which an update was attempted.
        Returns:
        The key.
      • getOptCounterInfo

        public OptCounterInfo getOptCounterInfo()
        This method gets a clone of the OptCounterInfo object that was used to create the SQL update statement.
        Returns:
        A clone of the OptCounterInfo object, or null if it could not be cloned.
      • toString

        public java.lang.String toString()
        This method returns a String representation of this object suitable for printing in trace information.
        Overrides:
        toString in class java.lang.Throwable
        Returns:
        A String representation of this object suitable for printing in trace information.