net.sf.jzeno.exception
Class OptimisticLockException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by net.sf.jzeno.exception.ManagedRuntimeException
                  extended by net.sf.jzeno.exception.OptimisticLockException
All Implemented Interfaces:
java.io.Serializable, NonFatalException

public class OptimisticLockException
extends ManagedRuntimeException
implements NonFatalException

This Exception gets thrown by Business Facade operations when that operation detects that the requested modifications to the database are impossible because the information the User Interface is supplying is stale at this point. This is the case when some other user changed the relevant data after the current user retrieved it from the database. A typical reaction by the UI code is to inform the user that his modifications could not be performed and ask him to re-apply his changes.

See Also:
Serialized Form

Constructor Summary
OptimisticLockException()
           
OptimisticLockException(java.lang.String message)
           
OptimisticLockException(java.lang.String message, java.lang.Throwable cause)
           
OptimisticLockException(java.lang.Throwable cause)
           
 
Method Summary
 
Methods inherited from class net.sf.jzeno.exception.ManagedRuntimeException
causedByManagedException
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OptimisticLockException

public OptimisticLockException()

OptimisticLockException

public OptimisticLockException(java.lang.Throwable cause)

OptimisticLockException

public OptimisticLockException(java.lang.String message,
                               java.lang.Throwable cause)

OptimisticLockException

public OptimisticLockException(java.lang.String message)