Examples of findUnique()


Examples of com.mossle.bpm.persistence.manager.BpmConfNodeManager.findUnique()

     * 配置用户任务.
     */
    public void processUserTask(Node node, BpmnModel bpmnModel, int priority,
            BpmConfBase bpmConfBase) {
        BpmConfNodeManager bpmConfNodeManager = getBpmConfNodeManager();
        BpmConfNode bpmConfNode = bpmConfNodeManager.findUnique(
                "from BpmConfNode where code=? and bpmConfBase=?",
                node.getId(), bpmConfBase);

        if (bpmConfNode == null) {
            bpmConfNode = new BpmConfNode();
View Full Code Here

Examples of com.mossle.bpm.persistence.manager.BpmConfNodeManager.findUnique()

     * 配置开始事件.
     */
    public void processStartEvent(Node node, BpmnModel bpmnModel, int priority,
            BpmConfBase bpmConfBase) {
        BpmConfNodeManager bpmConfNodeManager = getBpmConfNodeManager();
        BpmConfNode bpmConfNode = bpmConfNodeManager.findUnique(
                "from BpmConfNode where code=? and bpmConfBase=?",
                node.getId(), bpmConfBase);

        if (bpmConfNode == null) {
            bpmConfNode = new BpmConfNode();
View Full Code Here

Examples of com.mossle.bpm.persistence.manager.BpmConfNodeManager.findUnique()

     * 配置结束事件.
     */
    public void processEndEvent(Node node, BpmnModel bpmnModel, int priority,
            BpmConfBase bpmConfBase) {
        BpmConfNodeManager bpmConfNodeManager = getBpmConfNodeManager();
        BpmConfNode bpmConfNode = bpmConfNodeManager.findUnique(
                "from BpmConfNode where code=? and bpmConfBase=?",
                node.getId(), bpmConfBase);

        if (bpmConfNode == null) {
            bpmConfNode = new BpmConfNode();
View Full Code Here

Examples of com.mossle.bpm.persistence.manager.BpmConfUserManager.findUnique()

        if (value == null) {
            return priority;
        }

        BpmConfUserManager bpmConfUserManager = getBpmConfUserManager();
        BpmConfUser bpmConfUser = bpmConfUserManager
                .findUnique(
                        "from BpmConfUser where value=? and type=? and priority=? and status=0 and bpmConfNode=?",
                        value, type, priority, bpmConfNode);

        if (bpmConfUser == null) {
View Full Code Here

Examples of fi.evident.dalesbred.Database.findUnique()

    public void testCreation() {
        Injector injector = Guice.createInjector(new DriverManagerDatabaseModule(), TestDatabaseProvider.inMemoryDatabasePropertiesModule());

        Database db = injector.getInstance(Database.class);

        Employee employee = db.findUnique(Employee.class, "values (42, 'Fred Foo')");
        assertThat(employee.id, is(42));
        assertThat(employee.name, is("Fred Foo"));
        assertThat(employee.db, is(db));
    }
View Full Code Here

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

    sequenceReport.setInternalSequenceID(internalSequenceID);
   
    CreateSeqBean createSeqFindBean = new CreateSeqBean ();
    createSeqFindBean.setInternalSequenceID(internalSequenceID);
   
    CreateSeqBean createSeqBean = createSeqMgr.findUnique(createSeqFindBean);
   
    //if data not is available sequence has to be terminated or timedOut.
    if (createSeqBean==null) {
     
      //check weather this is an terminated sequence.
View Full Code Here

Examples of org.apache.sandesha2.storage.beanmanagers.InvokerBeanMgr.findUnique()

        StorageManager storageManager = SandeshaUtil.getSandeshaStorageManager(configurationContext,configurationContext.getAxisConfiguration());
        tran = storageManager.getTransaction();

        InvokerBeanMgr mgr = storageManager.getInvokerBeanMgr();
        InvokerBean nextBean = mgr.findUnique(finder);

        if(nextBean != null) {
          if(pooledThread) {
            if(log.isDebugEnabled()) log.debug("InvokerWorker:: pooledThread");
            initializeFromBean(nextBean);
View Full Code Here

Examples of org.apache.sandesha2.storage.beanmanagers.RMDBeanMgr.findUnique()

      RMDBean findBean = new RMDBean ();
      findBean.setSequenceID(inboundSequenceId);
     
      if (incomingSequenceBean==null) {
        RMDBeanMgr rmdMgr = storageManager.getRMDBeanMgr();
        incomingSequenceBean = rmdMgr.findUnique(findBean);
      }
     
      if (incomingSequenceBean!=null)
        RMMsgCreator.addAckMessage(rmMsgContext, inboundSequenceId, incomingSequenceBean);
     
View Full Code Here

Examples of org.apache.sandesha2.storage.beanmanagers.RMDBeanMgr.findUnique()

  throws SandeshaException {
    RMDBeanMgr rmdBeanMgr = storageManager.getRMDBeanMgr();
    RMDBean bean = new RMDBean();
    bean.setSequenceID(sequenceID);
   
    bean = rmdBeanMgr.findUnique(bean);

    return bean;
  }

  public static String getSequenceIDFromInternalSequenceID(String internalSequenceID,
View Full Code Here

Examples of org.apache.sandesha2.storage.beanmanagers.RMDBeanMgr.findUnique()

    RMDBeanMgr nextMsgMgr = storageManager.getRMDBeanMgr();
    RMDBean findBean = new RMDBean();
    findBean.setPollingMode(true);
    findBean.setTerminated(false);
    findBean.setSequenceID(entry.getSequenceId());
    RMDBean nextMsgBean = nextMsgMgr.findUnique(findBean);
   
    if(nextMsgBean == null) {
      // This sequence must have been terminated, or deleted
      stopThreadForSequence(entry.getSequenceId(), false);
    } else {
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.