
public class ReferentialIntegrityException extends DataIntegrityException
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:
| Constructor and Description |
|---|
ReferentialIntegrityException(String msg,
List<CDOObjectReference> xRefs) |
| Modifier and Type | Method and Description |
|---|---|
List<CDOObjectReference> |
getXRefs() |
isLocal, wrapaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic ReferentialIntegrityException(String msg, List<CDOObjectReference> xRefs)
public List<CDOObjectReference> getXRefs()
Copyright (c) 2011, 2012 Eike Stepper (Berlin, Germany) and others.