hu.netmind.beankeeper
Class ConcurrentModificationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
hu.netmind.beankeeper.StoreException
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
|
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 |
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)
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.