| org.springframework.dao.OptimisticLockingFailureException org.springframework.orm.ObjectOptimisticLockingFailureException
All known Subclasses: org.springframework.orm.toplink.TopLinkOptimisticLockingFailureException, org.springframework.orm.hibernate3.HibernateOptimisticLockingFailureException, org.springframework.orm.jpa.JpaOptimisticLockingFailureException, org.springframework.orm.jdo.JdoOptimisticLockingFailureException,
ObjectOptimisticLockingFailureException | public class ObjectOptimisticLockingFailureException extends OptimisticLockingFailureException (Code) | | Exception thrown on an optimistic locking violation for a mapped object.
Provides information about the persistent class and the identifier.
author: Juergen Hoeller since: 13.10.2003 |
Constructor Summary | |
public | ObjectOptimisticLockingFailureException(String msg, Throwable cause) Create a general ObjectOptimisticLockingFailureException with the given message,
without any information on the affected object. | public | ObjectOptimisticLockingFailureException(Class persistentClass, Object identifier) Create a new ObjectOptimisticLockingFailureException for the given object,
with the default "optimistic locking failed" message. | public | ObjectOptimisticLockingFailureException(Class persistentClass, Object identifier, Throwable cause) Create a new ObjectOptimisticLockingFailureException for the given object,
with the default "optimistic locking failed" message. | public | ObjectOptimisticLockingFailureException(Class persistentClass, Object identifier, String msg, Throwable cause) Create a new ObjectOptimisticLockingFailureException for the given object,
with the given explicit message. | public | ObjectOptimisticLockingFailureException(String persistentClassName, Object identifier) Create a new ObjectOptimisticLockingFailureException for the given object,
with the default "optimistic locking failed" message. | public | ObjectOptimisticLockingFailureException(String persistentClassName, Object identifier, Throwable cause) Create a new ObjectOptimisticLockingFailureException for the given object,
with the default "optimistic locking failed" message. | public | ObjectOptimisticLockingFailureException(String persistentClassName, Object identifier, String msg, Throwable cause) Create a new ObjectOptimisticLockingFailureException for the given object,
with the given explicit message. |
ObjectOptimisticLockingFailureException | public ObjectOptimisticLockingFailureException(String msg, Throwable cause)(Code) | | Create a general ObjectOptimisticLockingFailureException with the given message,
without any information on the affected object.
Parameters: msg - the detail message Parameters: cause - the source exception |
ObjectOptimisticLockingFailureException | public ObjectOptimisticLockingFailureException(Class persistentClass, Object identifier)(Code) | | Create a new ObjectOptimisticLockingFailureException for the given object,
with the default "optimistic locking failed" message.
Parameters: persistentClass - the persistent class Parameters: identifier - the ID of the object for which the locking failed |
ObjectOptimisticLockingFailureException | public ObjectOptimisticLockingFailureException(Class persistentClass, Object identifier, Throwable cause)(Code) | | Create a new ObjectOptimisticLockingFailureException for the given object,
with the default "optimistic locking failed" message.
Parameters: persistentClass - the persistent class Parameters: identifier - the ID of the object for which the locking failed Parameters: cause - the source exception |
ObjectOptimisticLockingFailureException | public ObjectOptimisticLockingFailureException(Class persistentClass, Object identifier, String msg, Throwable cause)(Code) | | Create a new ObjectOptimisticLockingFailureException for the given object,
with the given explicit message.
Parameters: persistentClass - the persistent class Parameters: identifier - the ID of the object for which the locking failed Parameters: msg - the detail message Parameters: cause - the source exception |
ObjectOptimisticLockingFailureException | public ObjectOptimisticLockingFailureException(String persistentClassName, Object identifier)(Code) | | Create a new ObjectOptimisticLockingFailureException for the given object,
with the default "optimistic locking failed" message.
Parameters: persistentClassName - the name of the persistent class Parameters: identifier - the ID of the object for which the locking failed |
ObjectOptimisticLockingFailureException | public ObjectOptimisticLockingFailureException(String persistentClassName, Object identifier, Throwable cause)(Code) | | Create a new ObjectOptimisticLockingFailureException for the given object,
with the default "optimistic locking failed" message.
Parameters: persistentClassName - the name of the persistent class Parameters: identifier - the ID of the object for which the locking failed Parameters: cause - the source exception |
ObjectOptimisticLockingFailureException | public ObjectOptimisticLockingFailureException(String persistentClassName, Object identifier, String msg, Throwable cause)(Code) | | Create a new ObjectOptimisticLockingFailureException for the given object,
with the given explicit message.
Parameters: persistentClassName - the name of the persistent class Parameters: identifier - the ID of the object for which the locking failed Parameters: msg - the detail message Parameters: cause - the source exception |
getIdentifier | public Object getIdentifier()(Code) | | Return the identifier of the object for which the locking failed.
|
getPersistentClass | public Class getPersistentClass()(Code) | | Return the persistent class of the object for which the locking failed.
If no Class was specified, this method returns null.
|
getPersistentClassName | public String getPersistentClassName()(Code) | | Return the name of the persistent class of the object for which the locking failed.
Will work for both Class objects and String names.
|
|
|