Package org.apache.sandesha2.storage.beanmanagers

Examples of org.apache.sandesha2.storage.beanmanagers.CreateSeqBeanMgr.find()


    StorageManager storageManager = SandeshaUtil.getSandeshaStorageManager(configurationContext);
    SequencePropertyBeanMgr seqPropMgr = storageManager.getSequencePropretyBeanMgr();
    SandeshaReport sandeshaReport = new SandeshaReport ();
    SequencePropertyBean internalSequenceFindBean = new SequencePropertyBean ();
    internalSequenceFindBean.setName(Sandesha2Constants.SequenceProperties.INTERNAL_SEQUENCE_ID);
    Collection collection = seqPropMgr.find(internalSequenceFindBean);
    Iterator iterator = collection.iterator();
    while (iterator.hasNext()) {
      SequencePropertyBean bean = (SequencePropertyBean) iterator.next();
      String sequenceID = bean.getSequenceID();
      sandeshaReport.addToOutgoingSequenceList (sequenceID);
View Full Code Here


   
    //incoming sequences
    SequencePropertyBean serverCompletedMsgsFindBean = new SequencePropertyBean ();
    serverCompletedMsgsFindBean.setName(Sandesha2Constants.SequenceProperties.SERVER_COMPLETED_MESSAGES);
   
    Collection serverCompletedMsgsBeans = seqPropMgr.find(serverCompletedMsgsFindBean);
    Iterator iter = serverCompletedMsgsBeans.iterator();
    while (iter.hasNext()) {
      SequencePropertyBean serverCompletedMsgsBean = (SequencePropertyBean) iter.next();
      String sequenceID = serverCompletedMsgsBean.getSequenceID();
      sandeshaReport.addToIncomingSequenceList(sequenceID);
View Full Code Here

    SequencePropertyBeanMgr seqPropBeanMgr = storageManager.getSequencePropretyBeanMgr();
   
    SequencePropertyBean findSeqIDBean = new SequencePropertyBean ();
    findSeqIDBean.setValue(internalSequenceID);
    findSeqIDBean.setName(Sandesha2Constants.SequenceProperties.INTERNAL_SEQUENCE_ID);
    Collection seqIDBeans = seqPropBeanMgr.find(findSeqIDBean);
   
    if (seqIDBeans.size()==0) {
      String message = "A sequence with give data has not been created";
      log.debug(message);
      throw new SandeshaException (message);
View Full Code Here

    SequencePropertyBeanMgr seqPropBeanMgr = storageManager.getSequencePropretyBeanMgr();
   
    SequencePropertyBean findSeqIDBean = new SequencePropertyBean ();
    findSeqIDBean.setValue(internalSequenceID);
    findSeqIDBean.setName(Sandesha2Constants.SequenceProperties.INTERNAL_SEQUENCE_ID);
    Collection seqIDBeans = seqPropBeanMgr.find(findSeqIDBean);
   
    if (seqIDBeans.size()==0) {
      String message = "A sequence with give data has not been created";
      log.debug(message);
      throw new SandeshaException (message);
View Full Code Here

    }
   
    //removing sequence properties
    SequencePropertyBean findSequencePropertyBean1 = new SequencePropertyBean ();
    findSequencePropertyBean1.setSequenceId(internalSequenceId);
    collection = sequencePropertyBeanMgr.find(findSequencePropertyBean1);
    iterator = collection.iterator();
    while (iterator.hasNext()) {
      SequencePropertyBean sequencePropertyBean = (SequencePropertyBean) iterator.next();
      sequencePropertyBeanMgr.delete(sequencePropertyBean.getSequenceId(),sequencePropertyBean.getName());
    }
View Full Code Here

      sequencePropertyBeanMgr.delete(sequencePropertyBean.getSequenceId(),sequencePropertyBean.getName());
    }
   
    SequencePropertyBean findSequencePropertyBean2 = new SequencePropertyBean ();
    findSequencePropertyBean2.setSequenceId(internalSequenceId);
    collection = sequencePropertyBeanMgr.find(findSequencePropertyBean2);
    iterator = collection.iterator();
    while (iterator.hasNext()) {
      SequencePropertyBean sequencePropertyBean = (SequencePropertyBean) iterator.next();
      sequencePropertyBeanMgr.delete(sequencePropertyBean.getSequenceId(),sequencePropertyBean.getName());
    }
View Full Code Here

    boolean rolebacked = false;

    try {

      internalSequenceFindBean.setName(Sandesha2Constants.SequenceProperties.INTERNAL_SEQUENCE_ID);
      Collection collection = seqPropMgr.find(internalSequenceFindBean);
      Iterator iterator = collection.iterator();
      while (iterator.hasNext()) {
        SequencePropertyBean bean = (SequencePropertyBean) iterator.next();
        String sequenceID = bean.getSequencePropertyKey();
        sandeshaReport.addToOutgoingSequenceList(sequenceID);
View Full Code Here

      // incoming sequences
      SequencePropertyBean serverCompletedMsgsFindBean = new SequencePropertyBean();
      serverCompletedMsgsFindBean.setName(Sandesha2Constants.SequenceProperties.SERVER_COMPLETED_MESSAGES);

      Collection serverCompletedMsgsBeans = seqPropMgr.find(serverCompletedMsgsFindBean);
      Iterator iter = serverCompletedMsgsBeans.iterator();
      while (iter.hasNext()) {
        SequencePropertyBean serverCompletedMsgsBean = (SequencePropertyBean) iter.next();
        String sequenceID = serverCompletedMsgsBean.getSequencePropertyKey();
        sandeshaReport.addToIncomingSequenceList(sequenceID);
View Full Code Here

    }

    // removing sequence properties
    SequencePropertyBean findSequencePropertyBean1 = new SequencePropertyBean();
    findSequencePropertyBean1.setSequencePropertyKey(sequencePropertyKey);
    collection = sequencePropertyBeanMgr.find(findSequencePropertyBean1);
    iterator = collection.iterator();
    while (iterator.hasNext()) {
      SequencePropertyBean sequencePropertyBean = (SequencePropertyBean) iterator.next();
      doUpdatesIfNeeded(outSequenceID, sequencePropertyBean, sequencePropertyBeanMgr);
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.