Examples of ReferentialIntegrityException


Examples of org.apache.openjpa.util.ReferentialIntegrityException

            break;
        case StoreException.OPTIMISTIC:
            storeEx = new OptimisticException(failed);
            break;
        case StoreException.REFERENTIAL_INTEGRITY:
            storeEx = new ReferentialIntegrityException(msg);
            break;
        case StoreException.QUERY:
            storeEx = new QueryException(msg);
            break;
        default:
View Full Code Here

Examples of org.apache.openjpa.util.ReferentialIntegrityException

        case StoreException.OBJECT_NOT_FOUND:
              return new ObjectNotFoundException(msg);
        case StoreException.OPTIMISTIC:
              return new OptimisticException(msg);
        case StoreException.REFERENTIAL_INTEGRITY:
              return new ReferentialIntegrityException(msg);
          default:
              return new StoreException(msg);
        }
    }
View Full Code Here

Examples of org.jboss.dna.graph.property.ReferentialIntegrityException

                        }
                        UUID toUuid = UUID.fromString(entity.getId().getToUuidString());
                        refs.add(refFactory.create(toUuid));
                    }
                    String msg = JpaConnectorI18n.unableToDeleteBecauseOfReferences.text();
                    throw new ReferentialIntegrityException(invalidRefs, msg);
                }

                // And adjust the SNS index and indexes ...
                ChildEntity.adjustSnsIndexesAndIndexesAfterRemoving(entities,
                                                                    workspaceId,
View Full Code Here

Examples of org.modeshape.jcr.cache.ReferentialIntegrityException

            }
            // check referential integrity ...
            referrers.removeAll(removedNodes);

            if (!referrers.isEmpty()) {
                throw new ReferentialIntegrityException(removedNodes, referrers);
            }

            // Now remove all of the nodes from the documentStore.
            // Note 2: we do this last because the children are removed from their parent before the removal is handled above
            // (see Node 1), meaning getting the path and other information for removed nodes never would work properly.
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.