Package org.apache.juddi.datastore

Examples of org.apache.juddi.datastore.DataStore.commit()


        dataStore.deleteService(serviceKey);

        log.info("Publisher '"+publisherID+"' deleted BusinessService with key: "+serviceKey);
      }

      dataStore.commit();
    }
    catch(InvalidKeyPassedException keyex)
    {
      try { dataStore.rollback(); } catch(Exception e) { }
      log.info(keyex.getMessage());
View Full Code Here


        // nothing that requires validation has been identified
      }

      // delete the PublisherAssertions
      dataStore.deleteAssertions(publisherID,assertionVector);
      dataStore.commit();
    }
    catch(RegistryException regex)
    {
      try { dataStore.rollback(); } catch(Exception e) { }
      log.error(regex);
View Full Code Here

      {
        String tModelKey = (String)keyVector.elementAt(i);
        tModelVector.add(dataStore.fetchTModel(tModelKey));
      }

      dataStore.commit();

      // create a new TModelDetail and stuff the new tModelVector into it.
      TModelDetail detail = new TModelDetail();
      detail.setGeneric(generic);
      detail.setTModelVector(tModelVector);
View Full Code Here

    {
      dataStore.beginTrans();

      // TODO (UDDI v3) Implement get_subscriptions business logic.
     
      dataStore.commit();

      // create a new PublisherDetail and stuff the new tModelVector into it.
      Subscriptions subs = new Subscriptions();
      subs.setGeneric(generic);
      subs.setOperator(Config.getOperator());
View Full Code Here

      // nothing that requires validation has been identified

      // set the PublisherAssertions
      Vector savedAssertionsVector = dataStore.setAssertions(publisherID,assertionVector);

      dataStore.commit();

      PublisherAssertions assertions = new PublisherAssertions();
      assertions.setGeneric(generic);
      assertions.setOperator(Config.getOperator());
      assertions.setPublisherAssertionVector(savedAssertionsVector);
View Full Code Here

    {
      dataStore.beginTrans();

      // TODO (UDDI v3) Implement delete_subscription business logic.
     
      dataStore.commit();
    }
    catch(InvalidKeyPassedException ex)
    {
      try { dataStore.rollback(); } catch(Exception e) { }
      log.info(ex);
View Full Code Here

          infoVector.addElement(dataStore.fetchTModelInfo((String)keyVector.elementAt(i)));

        tModelInfos.setTModelInfoVector(infoVector);
      }

      dataStore.commit();

      // create a new BusinessInfos instance and stuff
      // the new Vector of BusinessInfos into it.
      RegisteredInfo info = new RegisteredInfo();
      info.setGeneric(generic);
View Full Code Here

              "fromKey="+fromKey+", "+
              "toKey="+toKey);
      }

      dataStore.saveAssertions(publisherID,assertionVector);
      dataStore.commit();
    }
    catch(InvalidKeyPassedException keyex)
    {
      try { dataStore.rollback(); } catch(Exception e) { }
      log.info(keyex.getMessage());
View Full Code Here

        }

        dataStore.saveBusiness(business,publisherID);
      }

      dataStore.commit();

      BusinessDetail detail = new BusinessDetail();
      detail.setGeneric(generic);
      detail.setOperator(Config.getOperator());
      detail.setTruncated(false);
View Full Code Here

        dataStore.deleteBusiness(businessKey);

        log.info("Publisher '"+publisherID+"' deleted BusinessEntity with key: "+businessKey);
      }

      dataStore.commit();
    }
    catch(InvalidKeyPassedException keyex)
    {
      try { dataStore.rollback(); } catch(Exception e) { }
      log.info(keyex.getMessage());
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.