Save This Page
Home » hibernate-entity-src-20081106 » javax » persistence » [javadoc | source]
javax.persistence
public class: OptimisticLockException [javadoc | source]
java.lang.Object
   java.lang.Throwable
      java.lang.Exception
         java.lang.RuntimeException
            javax.persistence.PersistenceException
               javax.persistence.OptimisticLockException

All Implemented Interfaces:
    Serializable

Thrown by the persistence provider when an optimistic locking conflict occurs. This exception may be thrown as part of an API call, a flush or at commit time. The current transaction, if one is active, will be marked for rollback.
Constructor:
 public OptimisticLockException() 
 public OptimisticLockException(Object entity) 
 public OptimisticLockException(Throwable cause) 
 public OptimisticLockException(String message) 
 public OptimisticLockException(String message,
    Throwable cause) 
 public OptimisticLockException(String message,
    Throwable cause,
    Object entity) 
Method from javax.persistence.OptimisticLockException Summary:
getEntity
Methods from java.lang.Throwable:
fillInStackTrace,   getCause,   getLocalizedMessage,   getMessage,   getStackTrace,   initCause,   printStackTrace,   printStackTrace,   printStackTrace,   setStackTrace,   toString
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from javax.persistence.OptimisticLockException Detail:
 public Object getEntity()