hu.netmind.beankeeper
Class ConcurrentModificationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by hu.netmind.beankeeper.StoreException
                  extended by hu.netmind.beankeeper.ConcurrentModificationException
All Implemented Interfaces:
java.io.Serializable

public class ConcurrentModificationException
extends StoreException

Exception is thrown, if an object is about to be saved in a transaction, but the same object (or another representation of the same data) is under modification in another thread. This exception is also thrown if one of the objects is already locked.

See Also:
Serialized Form

Constructor Summary
ConcurrentModificationException(SessionInfo sessionInfo, java.lang.Object[] objs, java.lang.String message)
           
ConcurrentModificationException(SessionInfo sessionInfo, java.lang.Object[] objs, java.lang.String message, java.lang.Throwable cause)
           
 
Method Summary
 java.lang.Object[] getObjects()
          Returns the object which could not be modified.
 SessionInfo getSessionInfo()
          Returns the transaction which currently locks the object that could not be modified.
 
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

ConcurrentModificationException

public ConcurrentModificationException(SessionInfo sessionInfo,
                                       java.lang.Object[] objs,
                                       java.lang.String message)

ConcurrentModificationException

public ConcurrentModificationException(SessionInfo sessionInfo,
                                       java.lang.Object[] objs,
                                       java.lang.String message,
                                       java.lang.Throwable cause)
Method Detail

getObjects

public java.lang.Object[] getObjects()
Returns the object which could not be modified.


getSessionInfo

public SessionInfo getSessionInfo()
Returns the transaction which currently locks the object that could not be modified.