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.
Constructor and Description |
---|
ECJDBCOptimisticUpdateFailureException(java.lang.Object aKey, OptCounterInfo aOptCounterInfo)
This is the constructor for this class.
|
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.
|
public ECJDBCOptimisticUpdateFailureException(java.lang.Object aKey, OptCounterInfo aOptCounterInfo)
public java.lang.Object getKey()
public OptCounterInfo getOptCounterInfo()
public java.lang.String toString()