Class LocalCommitConflictException

  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.eclipse.emf.cdo.util.CommitException
              extended by org.eclipse.emf.cdo.util.ConcurrentAccessException
                  extended by org.eclipse.emf.cdo.util.CommitConflictException
                      extended by org.eclipse.emf.cdo.util.LocalCommitConflictException
All Implemented Interfaces:

public class LocalCommitConflictException
extends CommitConflictException

A commit conflict exception that indicates that the transaction has local conflicts.

It's usually possible and adequate to rollback the transaction, replay the model modifications and commit the transaction again (optimistic strategy). Pessimistic locks can help to avoid the problematic situation (see also CDOAutoLocker).

Instances of this class indicate commit conflicts that are detected locally by analyzing the passive updates that result from commits of other transactions. Conflict resolvers can help to reduce the risk of local commit conflicts.

See Also:
Serialized Form
No Extend
This interface is not intended to be extended by clients.
No Instantiate
This class is not intended to be instantiated by clients.

Constructor Summary
LocalCommitConflictException(String message)
Method Summary
 boolean isLocal()
Methods inherited from class org.eclipse.emf.cdo.util.CommitException
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


public LocalCommitConflictException(String message)
Method Detail


public boolean isLocal()
isLocal in class CommitException

Copyright (c) 2011, 2012 Eike Stepper (Berlin, Germany) and others.