Examples of StoreDuplicateEntryException


Examples of org.openxri.exceptions.StoreDuplicateEntryException

      session.beginTransaction();

      if (DbSubSegment.RootByName(session, name) != null) {

        throw new StoreDuplicateEntryException("Root subsegment exists already.");
      }

      authority = new DbAuthority();

      session.save(authority);
View Full Code Here

Examples of org.openxri.exceptions.StoreDuplicateEntryException

      reattach(session, parentAuthority);

      if (DbSubSegment.ByParentAndName(session, (DbAuthority) parentAuthority, subSegmentName) != null) {

        throw new StoreDuplicateEntryException("Subsegment exists already.");
      }

      authority = new DbAuthority();

      session.save(authority);
View Full Code Here

Examples of org.openxri.exceptions.StoreDuplicateEntryException

      reattach(session, authority);

      if (parentAuthority != null) {

        subSegment = DbSubSegment.ByParentAndName(session, (DbAuthority) parentAuthority, subSegmentName);
        if (subSegment != null) throw new StoreDuplicateEntryException("Subsegment exists already.");
      }

      if (authority != null && parentAuthority != null &&
          authority.equals(parentAuthority)) authority = parentAuthority;
View Full Code Here

Examples of org.openxri.exceptions.StoreDuplicateEntryException

      session.beginTransaction();

      if (DbSubSegment.RootByName(session, name) != null) {

        throw new StoreDuplicateEntryException("Root subsegment exists already.");
      }

      authority = new DbAuthority();

      session.save(authority);
View Full Code Here

Examples of org.openxri.exceptions.StoreDuplicateEntryException

      reattach(session, parentAuthority);

      if (DbSubSegment.ByParentAndName(session, (DbAuthority) parentAuthority, subSegmentName) != null) {

        throw new StoreDuplicateEntryException("Subsegment exists already.");
      }

      authority = new DbAuthority();

      session.save(authority);
View Full Code Here

Examples of org.openxri.exceptions.StoreDuplicateEntryException

      reattach(session, authority);

      if (parentAuthority != null) {

        subSegment = DbSubSegment.ByParentAndName(session, (DbAuthority) parentAuthority, subSegmentName);
        if (subSegment != null) throw new StoreDuplicateEntryException("Subsegment exists already.");
      }

      if (authority != null && parentAuthority != null &&
          authority.equals(parentAuthority)) authority = parentAuthority;
View Full Code Here

Examples of org.openxri.exceptions.StoreDuplicateEntryException

      session.beginTransaction();

      if (DbSubSegment.RootByName(session, name) != null) {

        throw new StoreDuplicateEntryException("Root subsegment exists already.");
      }

      authority = new DbAuthority();

      session.save(authority);
View Full Code Here

Examples of org.openxri.exceptions.StoreDuplicateEntryException

      reattach(session, parentAuthority);

      if (DbSubSegment.ByParentAndName(session, (DbAuthority) parentAuthority, subSegmentName) != null) {

        throw new StoreDuplicateEntryException("Subsegment exists already.");
      }

      authority = new DbAuthority();

      session.save(authority);
View Full Code Here

Examples of org.openxri.exceptions.StoreDuplicateEntryException

      reattach(session, authority);

      if (parentAuthority != null) {

        subSegment = DbSubSegment.ByParentAndName(session, (DbAuthority) parentAuthority, subSegmentName);
        if (subSegment != null) throw new StoreDuplicateEntryException("Subsegment exists already.");
      }

      if (authority != null && parentAuthority != null &&
          authority.equals(parentAuthority)) authority = parentAuthority;
View Full Code Here

Examples of org.openxri.store.StoreDuplicateEntryException

    String authorityId = this.getUUID();
    File authorityDir = this.getAuthorityDir(authorityId);

    if (authorityDir.exists()) {

      throw new StoreDuplicateEntryException("Authority exists already.");
    }

    FileAuthority authority = new FileAuthority(authorityDir);

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