public class ObjectOptimisticLockingFailureException extends OptimisticLockingFailureException
| Constructor and Description | 
|---|
ObjectOptimisticLockingFailureException(java.lang.Class<?> persistentClass,
                                       java.lang.Object identifier)
Create a new ObjectOptimisticLockingFailureException for the given object,
 with the default "optimistic locking failed" message. 
 | 
ObjectOptimisticLockingFailureException(java.lang.Class<?> persistentClass,
                                       java.lang.Object identifier,
                                       java.lang.String msg,
                                       java.lang.Throwable cause)
Create a new ObjectOptimisticLockingFailureException for the given object,
 with the given explicit message. 
 | 
ObjectOptimisticLockingFailureException(java.lang.Class<?> persistentClass,
                                       java.lang.Object identifier,
                                       java.lang.Throwable cause)
Create a new ObjectOptimisticLockingFailureException for the given object,
 with the default "optimistic locking failed" message. 
 | 
ObjectOptimisticLockingFailureException(java.lang.String persistentClassName,
                                       java.lang.Object identifier)
Create a new ObjectOptimisticLockingFailureException for the given object,
 with the default "optimistic locking failed" message. 
 | 
ObjectOptimisticLockingFailureException(java.lang.String persistentClassName,
                                       java.lang.Object identifier,
                                       java.lang.String msg,
                                       java.lang.Throwable cause)
Create a new ObjectOptimisticLockingFailureException for the given object,
 with the given explicit message. 
 | 
ObjectOptimisticLockingFailureException(java.lang.String persistentClassName,
                                       java.lang.Object identifier,
                                       java.lang.Throwable cause)
Create a new ObjectOptimisticLockingFailureException for the given object,
 with the default "optimistic locking failed" message. 
 | 
ObjectOptimisticLockingFailureException(java.lang.String msg,
                                       java.lang.Throwable cause)
Create a general ObjectOptimisticLockingFailureException with the given message,
 without any information on the affected object. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
java.lang.Object | 
getIdentifier()
Return the identifier of the object for which the locking failed. 
 | 
java.lang.Class<?> | 
getPersistentClass()
Return the persistent class of the object for which the locking failed. 
 | 
java.lang.String | 
getPersistentClassName()
Return the name of the persistent class of the object for which the locking failed. 
 | 
contains, getMessage, getMostSpecificCause, getRootCausepublic ObjectOptimisticLockingFailureException(java.lang.String msg,
                                               java.lang.Throwable cause)
msg - the detail messagecause - the source exceptionpublic ObjectOptimisticLockingFailureException(java.lang.Class<?> persistentClass,
                                               java.lang.Object identifier)
persistentClass - the persistent classidentifier - the ID of the object for which the locking failedpublic ObjectOptimisticLockingFailureException(java.lang.Class<?> persistentClass,
                                               java.lang.Object identifier,
                                               @Nullable
                                               java.lang.Throwable cause)
persistentClass - the persistent classidentifier - the ID of the object for which the locking failedcause - the source exceptionpublic ObjectOptimisticLockingFailureException(java.lang.Class<?> persistentClass,
                                               java.lang.Object identifier,
                                               java.lang.String msg,
                                               @Nullable
                                               java.lang.Throwable cause)
persistentClass - the persistent classidentifier - the ID of the object for which the locking failedmsg - the detail messagecause - the source exceptionpublic ObjectOptimisticLockingFailureException(java.lang.String persistentClassName,
                                               java.lang.Object identifier)
persistentClassName - the name of the persistent classidentifier - the ID of the object for which the locking failedpublic ObjectOptimisticLockingFailureException(java.lang.String persistentClassName,
                                               java.lang.Object identifier,
                                               @Nullable
                                               java.lang.Throwable cause)
persistentClassName - the name of the persistent classidentifier - the ID of the object for which the locking failedcause - the source exceptionpublic ObjectOptimisticLockingFailureException(java.lang.String persistentClassName,
                                               java.lang.Object identifier,
                                               java.lang.String msg,
                                               @Nullable
                                               java.lang.Throwable cause)
persistentClassName - the name of the persistent classidentifier - the ID of the object for which the locking failedmsg - the detail messagecause - the source exception@Nullable public java.lang.Class<?> getPersistentClass()
@Nullable public java.lang.String getPersistentClassName()
@Nullable public java.lang.Object getIdentifier()