Package org.apache.openjpa.util
Class LockException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.apache.openjpa.util.OpenJPAException
-
- org.apache.openjpa.util.StoreException
-
- org.apache.openjpa.util.LockException
-
- All Implemented Interfaces:
java.io.Serializable
,ExceptionInfo
public class LockException extends StoreException
Exception indicating that locks on one or more objects could not be acquired.- Since:
- 0.3.1
- Author:
- Marc Prud'hommeaux
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.apache.openjpa.util.StoreException
LOCK, OBJECT_EXISTS, OBJECT_NOT_FOUND, OPTIMISTIC, QUERY, REFERENTIAL_INTEGRITY
-
Fields inherited from interface org.apache.openjpa.util.ExceptionInfo
GENERAL, INTERNAL, STORE, UNAVAILABLE, UNSUPPORTED, USER, WRAPPED
-
-
Constructor Summary
Constructors Constructor Description LockException(java.lang.Object failed)
LockException(java.lang.Object failed, int timeout)
LockException(java.lang.Object failed, int timeout, int lockLevel)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getLockLevel()
int
getSubtype()
Exception subtype.int
getTimeout()
The number of milliseconds to wait for a lock.void
setLockLevel(int lockLevel)
LockException
setTimeout(int timeout)
The number of milliseconds to wait for a lock.java.lang.String
toString()
-
Methods inherited from class org.apache.openjpa.util.StoreException
getType
-
Methods inherited from class org.apache.openjpa.util.OpenJPAException
getCause, getFailedObject, getNestedThrowables, isFatal, printStackTrace, printStackTrace, printStackTrace, setCause, setFailedObject, setFatal, setNestedThrowables
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, 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
-
-
-
-
Method Detail
-
getSubtype
public int getSubtype()
Description copied from class:OpenJPAException
Exception subtype.- Specified by:
getSubtype
in interfaceExceptionInfo
- Overrides:
getSubtype
in classOpenJPAException
-
getTimeout
public int getTimeout()
The number of milliseconds to wait for a lock.
-
setTimeout
public LockException setTimeout(int timeout)
The number of milliseconds to wait for a lock.
-
setLockLevel
public void setLockLevel(int lockLevel)
-
getLockLevel
public int getLockLevel()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classOpenJPAException
-
-