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. |
getErrorCode, getNextException, getSQLState, iterator, setNextException
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
public ECJDBCOptimisticUpdateFailureException(java.lang.Object aKey, OptCounterInfo aOptCounterInfo)
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.public java.lang.Object getKey()
public OptCounterInfo getOptCounterInfo()
OptCounterInfo
object that was used to create the
SQL update statement.OptCounterInfo
object, or null if it could not be cloned.public java.lang.String toString()
String
representation of this object suitable for printing in trace information.toString
in class java.lang.Throwable
String
representation of this object suitable for printing in trace information.