public class LockException extends StoreException
LOCK, OBJECT_EXISTS, OBJECT_NOT_FOUND, OPTIMISTIC, QUERY, REFERENTIAL_INTEGRITY
GENERAL, INTERNAL, STORE, UNAVAILABLE, UNSUPPORTED, USER, WRAPPED
Constructor and Description |
---|
LockException(Object failed) |
LockException(Object failed,
int timeout) |
LockException(Object failed,
int timeout,
int lockLevel) |
Modifier and Type | Method and 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.
|
String |
toString() |
getType
getCause, getFailedObject, getNestedThrowables, isFatal, printStackTrace, printStackTrace, printStackTrace, setCause, setFailedObject, setFatal, setNestedThrowables
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, setStackTrace
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getMessage
public LockException(Object failed)
public LockException(Object failed, int timeout)
public LockException(Object failed, int timeout, int lockLevel)
public int getSubtype()
OpenJPAException
getSubtype
in interface ExceptionInfo
getSubtype
in class OpenJPAException
public int getTimeout()
public LockException setTimeout(int timeout)
public void setLockLevel(int lockLevel)
public int getLockLevel()
public String toString()
toString
in class OpenJPAException
Copyright © 2006–2022 Apache Software Foundation. All rights reserved.