Examples of ReferentialIntegrityException


Examples of javax.jcr.ReferentialIntegrityException

         throw new ItemExistsException(e);
      }
      catch (ReferentialIntegrityException e)
      {
         remainChangesBack(cLog);
         throw new ReferentialIntegrityException(e);
      }
      catch (RepositoryException e)
      {
         remainChangesBack(cLog);
         throw new RepositoryException(e);
View Full Code Here

Examples of javax.jcr.ReferentialIntegrityException

            {
               throw new AccessDeniedException("Access denied " + rpd.getQPath().getAsString() + " for "
                  + userState.getIdentity().getUserId() + " (get reference property parent by id)");
            }

            throw new ReferentialIntegrityException("This node " + node.getQPath().getAsString()
               + " is currently the target of a REFERENCE property " + rpd.getQPath().getAsString()
               + " located in this workspace. Session id: " + userState.getIdentity().getUserId());
         }
      }
   }
View Full Code Here

Examples of javax.jcr.ReferentialIntegrityException

               {
                  throw new AccessDeniedException("Can not delete node " + refNode.getQPath() + " ("
                     + refNode.getIdentifier() + ")" + ". It is currently the target of a REFERENCE property and "
                     + refProp.getQPath().getAsString());
               }
               throw new ReferentialIntegrityException("Can not delete node " + refNode.getQPath() + " ("
                  + refNode.getIdentifier() + ")" + ". It is currently the target of a REFERENCE property "
                  + refProp.getQPath().getAsString());
            }
         }
      }
View Full Code Here

Examples of javax.jcr.ReferentialIntegrityException

      // check references.
      // Note: References from /jcr:system/jcr:versionStorage never included to
      // getReferences!
      List<PropertyData> refs = dataManager.getReferencesData(version.getInternalIdentifier(), true);
      if (refs.size() > 0)
         throw new ReferentialIntegrityException("There are Reference property pointed to this Version "
            + refs.get(0).getQPath().getAsString());

      PlainChangesLog changes = new PlainChangesLogImpl(session.getId());

      // remove labels first
View Full Code Here

Examples of javax.jcr.ReferentialIntegrityException

      // Note: References from /jcr:system/jcr:versionStorage never included to
      // getReferences!
      List<PropertyData> refs = dataManager.getReferencesData(version.getInternalIdentifier(), true);
      if (refs.size() > 0)
      {
         throw new ReferentialIntegrityException("There are Reference property pointed to this Version "
            + refs.get(0).getQPath().getAsString());
      }

      PlainChangesLog changes = new PlainChangesLogImpl(session.getId());
View Full Code Here

Examples of javax.jcr.ReferentialIntegrityException

               {
                  throw new AccessDeniedException("Can not delete node " + refNode.getQPath() + " ("
                     + refNode.getIdentifier() + ")" + ". It is currently the target of a REFERENCE property and "
                     + refProp.getQPath().getAsString());
               }
               throw new ReferentialIntegrityException("Can not delete node " + refNode.getQPath() + " ("
                  + refNode.getIdentifier() + ")" + ". It is currently the target of a REFERENCE property "
                  + refProp.getQPath().getAsString());
            }
         }
      }
View Full Code Here

Examples of javax.jcr.ReferentialIntegrityException

         throw new ItemExistsException(e);
      }
      catch (ReferentialIntegrityException e)
      {
         remainChangesBack(cLog);
         throw new ReferentialIntegrityException(e);
      }
      catch (RepositoryException e)
      {
         remainChangesBack(cLog);
         throw new RepositoryException(e);
View Full Code Here

Examples of javax.jcr.ReferentialIntegrityException

      // check references.
      // Note: References from /jcr:system/jcr:versionStorage never included to
      // getReferences!
      List<PropertyData> refs = dataManager.getReferencesData(version.getInternalIdentifier(), true);
      if (refs.size() > 0)
         throw new ReferentialIntegrityException("There are Reference property pointed to this Version "
            + refs.get(0).getQPath().getAsString());

      PlainChangesLog changes = new PlainChangesLogImpl(session.getId());

      // remove labels first
View Full Code Here

Examples of org.apache.openjpa.util.ReferentialIntegrityException

     * DB-specific exception information in <code>causes</code>.
     */
    public OpenJPAException newStoreException(String msg, SQLException[] causes,
        Object failed) {
        if (causes.length > 0 && "23000".equals(causes[0].getSQLState()))
            return new ReferentialIntegrityException(msg).
                setFailedObject(failed).setNestedThrowables(causes);
        return new StoreException(msg).setFailedObject(failed).
            setNestedThrowables(causes);
    }
View Full Code Here

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
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.