Class ReferentialIntegrityException

  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.DataIntegrityException
                  extended by org.eclipse.emf.cdo.util.ReferentialIntegrityException
All Implemented Interfaces:

public class ReferentialIntegrityException
extends DataIntegrityException

A data integrity exception that indicates an attempt to create stale references. A stale reference is a refenrence that points to a target object that does not (or no longer) exist.

Detection of referential integrity violations must be explicitely enabled on the server side because it can be expensive:

    <property name="ensureReferentialIntegrity" value="true"/>
The risk of referential integrity violations can be reduced (but not eliminated) by using local cross reference queries before committing:

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
ReferentialIntegrityException(String msg, List<CDOObjectReference> xRefs)
Method Summary
 List<CDOObjectReference> getXRefs()
Methods inherited from class org.eclipse.emf.cdo.util.CommitException
isLocal, wrap
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 ReferentialIntegrityException(String msg,
                                     List<CDOObjectReference> xRefs)
Method Detail


public List<CDOObjectReference> getXRefs()

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