org.apache.ojb.broker
Class OptimisticLockException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.apache.commons.lang.exception.NestableRuntimeException
                  extended by org.apache.ojb.broker.OJBRuntimeException
                      extended by org.apache.ojb.broker.PersistenceBrokerException
                          extended by org.apache.ojb.broker.OptimisticLockException
All Implemented Interfaces:
java.io.Serializable, org.apache.commons.lang.exception.Nestable

public class OptimisticLockException
extends PersistenceBrokerException

Exception that is thrown if a violation of an optimistic lock was detected.

Version:
$Id: OptimisticLockException.java 365231 2005-12-21 22:22:08Z tomdz $
Author:
Thomas Mahler
See Also:
Serialized Form

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

OptimisticLockException

public OptimisticLockException()
Creates a new exception instance.


OptimisticLockException

public OptimisticLockException(java.lang.String msg)
Creates a new exception instance.

Parameters:
msg - The exception message

OptimisticLockException

public OptimisticLockException(java.lang.String msg,
                               java.lang.Object source)
Creates a new exception instance.

Parameters:
msg - The exception message
source - The violating object

OptimisticLockException

public OptimisticLockException(java.lang.Throwable cause)
Creates a new exception instance.

Parameters:
cause - The base exception
Method Detail

getSourceObject

public java.lang.Object getSourceObject()
Gets the violating object.

Returns:
The object

setSourceObject

public void setSourceObject(java.lang.Object sourceObject)
Sets the violating object.

Parameters:
sourceObject - The object


(C) 2002 - 2006 Apache Software Foundation
All rights reserved. Published under the Apache License 2.0.
http://db.apache.org/ojb
Version: 1.0.4, 2005-12-30