org.apache.openjpa.persistence
Class OptimisticLockException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by javax.persistence.PersistenceException
                  extended by javax.persistence.OptimisticLockException
                      extended by org.apache.openjpa.persistence.OptimisticLockException
All Implemented Interfaces:
java.io.Serializable, org.apache.openjpa.util.ExceptionInfo

public class OptimisticLockException
extends javax.persistence.OptimisticLockException
implements java.io.Serializable, org.apache.openjpa.util.ExceptionInfo

Optimistic concurrency violation.

Since:
0.4.0
Author:
Abe White
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.apache.openjpa.util.ExceptionInfo
GENERAL, INTERNAL, STORE, UNSUPPORTED, USER
 
Constructor Summary
OptimisticLockException(java.lang.String msg, java.lang.Throwable[] nested, java.lang.Object failed, boolean fatal)
           
 
Method Summary
 java.lang.Throwable getCause()
           
 java.lang.Object getFailedObject()
           
 java.lang.Throwable[] getNestedThrowables()
           
 int getSubtype()
           
 int getType()
           
 boolean isFatal()
           
 void printStackTrace()
           
 void printStackTrace(java.io.PrintStream out)
           
 void printStackTrace(java.io.PrintWriter out)
           
 java.lang.String toString()
           
 
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
 
Methods inherited from interface org.apache.openjpa.util.ExceptionInfo
getMessage
 

Constructor Detail

OptimisticLockException

public OptimisticLockException(java.lang.String msg,
                               java.lang.Throwable[] nested,
                               java.lang.Object failed,
                               boolean fatal)
Method Detail

getType

public int getType()
Specified by:
getType in interface org.apache.openjpa.util.ExceptionInfo

getSubtype

public int getSubtype()
Specified by:
getSubtype in interface org.apache.openjpa.util.ExceptionInfo

isFatal

public boolean isFatal()
Specified by:
isFatal in interface org.apache.openjpa.util.ExceptionInfo

getCause

public java.lang.Throwable getCause()
Specified by:
getCause in interface org.apache.openjpa.util.ExceptionInfo
Overrides:
getCause in class java.lang.Throwable

getNestedThrowables

public java.lang.Throwable[] getNestedThrowables()
Specified by:
getNestedThrowables in interface org.apache.openjpa.util.ExceptionInfo

getFailedObject

public java.lang.Object getFailedObject()
Specified by:
getFailedObject in interface org.apache.openjpa.util.ExceptionInfo

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Throwable

printStackTrace

public void printStackTrace()
Specified by:
printStackTrace in interface org.apache.openjpa.util.ExceptionInfo
Overrides:
printStackTrace in class java.lang.Throwable

printStackTrace

public void printStackTrace(java.io.PrintStream out)
Overrides:
printStackTrace in class java.lang.Throwable

printStackTrace

public void printStackTrace(java.io.PrintWriter out)
Overrides:
printStackTrace in class java.lang.Throwable