|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.commons.lang.exception.NestableRuntimeException
org.apache.ojb.broker.OJBRuntimeException
org.apache.ojb.broker.PersistenceBrokerException
org.apache.ojb.broker.OptimisticLockException
public class OptimisticLockException
Exception that is thrown if a violation of an optimistic lock was detected.
Constructor Summary | |
---|---|
OptimisticLockException()
Creates a new exception instance. |
|
OptimisticLockException(java.lang.String msg)
Creates a new exception instance. |
|
OptimisticLockException(java.lang.String msg,
java.lang.Object source)
Creates a new exception instance. |
|
OptimisticLockException(java.lang.Throwable cause)
Creates a new exception instance. |
Method Summary | |
---|---|
java.lang.Object |
getSourceObject()
Gets the violating object. |
void |
setSourceObject(java.lang.Object sourceObject)
Sets the violating object. |
Methods inherited from class org.apache.ojb.broker.PersistenceBrokerException |
---|
getSourceException |
Methods inherited from class org.apache.commons.lang.exception.NestableRuntimeException |
---|
getCause, getMessage, getMessage, getMessages, getThrowable, getThrowableCount, getThrowables, indexOfThrowable, indexOfThrowable, printPartialStackTrace, printStackTrace, printStackTrace, printStackTrace |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getLocalizedMessage, getStackTrace, initCause, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public OptimisticLockException()
public OptimisticLockException(java.lang.String msg)
msg
- The exception messagepublic OptimisticLockException(java.lang.String msg, java.lang.Object source)
msg
- The exception messagesource
- The violating objectpublic OptimisticLockException(java.lang.Throwable cause)
cause
- The base exceptionMethod Detail |
---|
public java.lang.Object getSourceObject()
public void setSourceObject(java.lang.Object sourceObject)
sourceObject
- The object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |