org.apache.openjpa.persistence
Class OptimisticLockException
java.lang.Object
   java.lang.Throwable
java.lang.Throwable
       java.lang.Exception
java.lang.Exception
           java.lang.RuntimeException
java.lang.RuntimeException
               javax.persistence.PersistenceException
javax.persistence.PersistenceException
                   javax.persistence.OptimisticLockException
javax.persistence.OptimisticLockException
                       org.apache.openjpa.persistence.OptimisticLockException
org.apache.openjpa.persistence.OptimisticLockException
- All Implemented Interfaces: 
- java.io.Serializable, ExceptionInfo
- public class OptimisticLockException 
- extends javax.persistence.OptimisticLockException- implements java.io.Serializable, ExceptionInfo
Optimistic concurrency violation.
- Since:
- 0.4.0
- Author:
- Abe White
- See Also:
- Serialized Form
 
 
| Constructor Summary | 
| OptimisticLockException(java.lang.String msg,
                        java.lang.Throwable[] nested,
                        java.lang.Object failed,
                        boolean fatal)
 | 
 
 
| Methods inherited from class javax.persistence.OptimisticLockException | 
| getEntity | 
 
| Methods inherited from class java.lang.Throwable | 
| fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace | 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
 
 
OptimisticLockException
public OptimisticLockException(java.lang.String msg,
                               java.lang.Throwable[] nested,
                               java.lang.Object failed,
                               boolean fatal)
getType
public int getType()
- 
- Specified by:
- getTypein interface- ExceptionInfo
 
- 
 
getSubtype
public int getSubtype()
- 
- Specified by:
- getSubtypein interface- ExceptionInfo
 
- 
 
isFatal
public boolean isFatal()
- 
- Specified by:
- isFatalin interface- ExceptionInfo
 
- 
 
getCause
public java.lang.Throwable getCause()
- 
- Specified by:
- getCausein interface- ExceptionInfo
- Overrides:
- getCausein class- java.lang.Throwable
 
- 
 
getNestedThrowables
public java.lang.Throwable[] getNestedThrowables()
- 
- Specified by:
- getNestedThrowablesin interface- ExceptionInfo
 
- 
 
getFailedObject
public java.lang.Object getFailedObject()
- 
- Specified by:
- getFailedObjectin interface- ExceptionInfo
 
- 
 
toString
public java.lang.String toString()
- 
- Overrides:
- toStringin class- java.lang.Throwable
 
- 
 
printStackTrace
public void printStackTrace()
- 
- Specified by:
- printStackTracein interface- ExceptionInfo
- Overrides:
- printStackTracein class- java.lang.Throwable
 
- 
 
printStackTrace
public void printStackTrace(java.io.PrintStream out)
- 
- Overrides:
- printStackTracein class- java.lang.Throwable
 
- 
 
printStackTrace
public void printStackTrace(java.io.PrintWriter out)
- 
- Overrides:
- printStackTracein class- java.lang.Throwable
 
- 
 
Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.