|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.core.NestedRuntimeException
org.springframework.dao.DataAccessException
org.springframework.dao.ConcurrencyFailureException
org.springframework.dao.OptimisticLockingFailureException
org.springframework.orm.ObjectOptimisticLockingFailureException
Exception thrown on an optimistic locking violation for a mapped object. Provides information about the persistent class and the identifier.
Field Summary |
Fields inherited from class java.lang.RuntimeException |
|
Constructor Summary | |
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 ex)
Create a new ObjectOptimisticLockingFailureException for the given object, with the given explicit 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 ex)
Create a new ObjectOptimisticLockingFailureException for the given object, with the given explicit message. |
Method Summary | |
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. |
Methods inherited from class org.springframework.core.NestedRuntimeException |
getCause, getMessage, printStackTrace, printStackTrace |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getLocalizedMessage, getStackTrace, initCause, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public 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, java.lang.String msg, java.lang.Throwable ex)
persistentClass
- the persistent classidentifier
- the ID of the object for which the locking failedmsg
- exception messageex
- 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, java.lang.String msg, java.lang.Throwable ex)
persistentClassName
- the name of the persistent classidentifier
- the ID of the object for which the locking failedmsg
- exception messageex
- source exceptionMethod Detail |
public java.lang.Class getPersistentClass()
public java.lang.String getPersistentClassName()
public java.lang.Object getIdentifier()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |