Package org.openxri.exceptions

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


      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

      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

      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

      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

      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

      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

      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

      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

TOP

Related Classes of org.openxri.exceptions.StoreDuplicateEntryException

Copyright © 2018 www.massapicom. 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.