java.lang.Object | |||||||||
↳ | java.lang.Throwable | ||||||||
↳ | java.lang.Exception | ||||||||
↳ | java.lang.RuntimeException | ||||||||
↳ | org.springframework.core.NestedRuntimeException | ||||||||
↳ | org.springframework.dao.DataAccessException | ||||||||
↳ | org.springframework.dao.TransientDataAccessException | ||||||||
↳ | org.springframework.dao.ConcurrencyFailureException | ||||||||
↳ | org.springframework.dao.OptimisticLockingFailureException | ||||||||
↳ | org.springframework.orm.ObjectOptimisticLockingFailureException |
Known Direct Subclasses |
Exception thrown on an optimistic locking violation for a mapped object. Provides information about the persistent class and the identifier.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create a general ObjectOptimisticLockingFailureException with the given message,
without any information on the affected object.
| |||||||||||
Create a new ObjectOptimisticLockingFailureException for the given object,
with the default "optimistic locking failed" message.
| |||||||||||
Create a new ObjectOptimisticLockingFailureException for the given object,
with the default "optimistic locking failed" message.
| |||||||||||
Create a new ObjectOptimisticLockingFailureException for the given object,
with the given explicit message.
| |||||||||||
Create a new ObjectOptimisticLockingFailureException for the given object,
with the default "optimistic locking failed" message.
| |||||||||||
Create a new ObjectOptimisticLockingFailureException for the given object,
with the default "optimistic locking failed" message.
| |||||||||||
Create a new ObjectOptimisticLockingFailureException for the given object,
with the given explicit message.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Return the identifier of the object for which the locking failed.
| |||||||||||
Return the persistent class of the object for which the locking failed.
| |||||||||||
Return the name of the persistent class of the object for which the locking failed.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.springframework.core.NestedRuntimeException
| |||||||||||
From class
java.lang.Throwable
| |||||||||||
From class
java.lang.Object
|
Create a general ObjectOptimisticLockingFailureException with the given message, without any information on the affected object.
msg | the detail message |
---|---|
cause | the source exception |
Create a new ObjectOptimisticLockingFailureException for the given object, with the default "optimistic locking failed" message.
persistentClass | the persistent class |
---|---|
identifier | the ID of the object for which the locking failed |
Create a new ObjectOptimisticLockingFailureException for the given object, with the default "optimistic locking failed" message.
persistentClass | the persistent class |
---|---|
identifier | the ID of the object for which the locking failed |
cause | the source exception |
Create a new ObjectOptimisticLockingFailureException for the given object, with the given explicit message.
persistentClass | the persistent class |
---|---|
identifier | the ID of the object for which the locking failed |
msg | the detail message |
cause | the source exception |
Create a new ObjectOptimisticLockingFailureException for the given object, with the default "optimistic locking failed" message.
persistentClassName | the name of the persistent class |
---|---|
identifier | the ID of the object for which the locking failed |
Create a new ObjectOptimisticLockingFailureException for the given object, with the default "optimistic locking failed" message.
persistentClassName | the name of the persistent class |
---|---|
identifier | the ID of the object for which the locking failed |
cause | the source exception |
Create a new ObjectOptimisticLockingFailureException for the given object, with the given explicit message.
persistentClassName | the name of the persistent class |
---|---|
identifier | the ID of the object for which the locking failed |
msg | the detail message |
cause | the source exception |
Return the persistent class of the object for which the locking failed. If no Class was specified, this method returns null.
Return the name of the persistent class of the object for which the locking failed. Will work for both Class objects and String names.