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:
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,v 1.1 2007-08-24 22:17:35 ewestfal Exp $
Author:
Thomas Mahler
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.commons.lang.exception.NestableRuntimeException
delegate
 
Constructor Summary
OptimisticLockException()
          Creates a new exception instance.
OptimisticLockException(String msg)
          Creates a new exception instance.
OptimisticLockException(String msg, Object source)
          Creates a new exception instance.
OptimisticLockException(Throwable cause)
          Creates a new exception instance.
 
Method Summary
 Object getSourceObject()
          Gets the violating object.
 void setSourceObject(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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OptimisticLockException

public OptimisticLockException()
Creates a new exception instance.


OptimisticLockException

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

Parameters:
msg - The exception message

OptimisticLockException

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

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

OptimisticLockException

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

Parameters:
cause - The base exception
Method Detail

getSourceObject

public Object getSourceObject()
Gets the violating object.

Returns:
The object

setSourceObject

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

Parameters:
sourceObject - The object


Copyright © 2004-2012 The Kuali Foundation. All Rights Reserved.