org.nanocontainer.persistence
Class StaleObjectStateException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.picocontainer.PicoException
                  extended by org.nanocontainer.persistence.PersistenceException
                      extended by org.nanocontainer.persistence.ConcurrencyFailureException
                          extended by org.nanocontainer.persistence.StaleObjectStateException
All Implemented Interfaces:
Serializable

public class StaleObjectStateException
extends ConcurrencyFailureException

A specialization of ConcurrencyFailureException which is thrown when a version number or timestamp check failed or try delete or update a row that does not exist anymore.

Version:
$Revision: $
See Also:
Serialized Form

Constructor Summary
StaleObjectStateException(Throwable cause, String entityName, Object objectId)
           
 
Method Summary
 String getEntityName()
           
 Object getObjectId()
           
 
Methods inherited from class org.picocontainer.PicoException
getCause, printStackTrace, printStackTrace, printStackTrace
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StaleObjectStateException

public StaleObjectStateException(Throwable cause,
                                 String entityName,
                                 Object objectId)
Method Detail

getEntityName

public String getEntityName()

getObjectId

public Object getObjectId()


Copyright 2003-2003-2006 Codehaus. All Rights Reserved.