Examples of end()


Examples of org.hibernate.search.testsupport.setup.TransactionContextForTest.end()

  private void storeObject(Object entity, Serializable id) {
    Work work = new Work( entity, id, WorkType.UPDATE, false );
    TransactionContextForTest tc = new TransactionContextForTest();
    slaveNode.getSearchFactory().getWorker().performWork( work, tc );
    tc.end();
  }

  @Indexed(index = "dvds")
  public static final class Dvd {
    @DocumentId long id;
View Full Code Here

Examples of org.hornetq.api.core.client.ClientSession.end()

               msgReceived++;
               ClientMessage msg = consumer.receive(10000);
               assertNotNull(msg);
               msg.acknowledge();
            }
            sessionConsumer.end(xid, XAResource.TMSUCCESS);
            sessionConsumer.prepare(xid);
            sessionConsumer.close();
         }

         ClientSession sessionCheck = sf.createSession(true, true);
View Full Code Here

Examples of org.jboss.capedwarf.jpa.ProxyingEnum.end()

            ProxyingEnum pe = proxying.value();
            pe.begin();
            try {
                return invocation.proceed();
            } finally {
                pe.end();
            }
        } else {
            return invocation.proceed();
        }
    }
View Full Code Here

Examples of org.jboss.dashboard.profiler.CodeBlockTrace.end()

            int range = sourceDataSet.getPropertyColumn(rangeProperty);
            int[] columns = new int[] {pivot, range};
            String[] functionCodes = new String[] {CountFunction.CODE, scalarFunction.getCode()};
            return sourceDataSet.groupBy(domainProperty, columns, functionCodes, intervalsSortCriteria, intervalsSortOrder);
        } finally {
            trace.end();
        }
    }

    public void copyFrom(DataDisplayer sourceDisplayer) {
        try {
View Full Code Here

Examples of org.jboss.dna.graph.query.QueryBuilder.ConstraintBuilder.end()

            }
        }
        if (steps.isEmpty() || !path.isEmpty()) {
            translateSource(tableName, path, where);
        }
        where.end();

        // Process the order-by clause ...
        OrderBy orderBy = pathExpression.getOrderBy();
        if (orderBy != null) {
            OrderByBuilder orderByBuilder = builder.orderBy();
View Full Code Here

Examples of org.jboss.dna.graph.query.QueryBuilder.OrderByBuilder.end()

                        }
                    }
                    operandBuilder.fullTextSearchScore(nameOfTableToScore);
                }
            }
            orderByBuilder.end();
        }
        // Try building this query, because we need to check the # of columns selected and the # of sources ...
        Query query = (Query)builder.query();
        if (query.getColumns().isEmpty() && query.getSource() instanceof AllNodes) {
            // This is basically 'SELECT * FROM __ALLNODES__", which means that no type was explicitly specified and
View Full Code Here

Examples of org.jboss.jms.tx.MessagingXAResource.end()

         byte[] branchQualifier = new byte[] { 1, 2, 3, 4, 5, 6, 0, 0, 0, 0 };
         byte[] globalTxId = new byte[] { 6, 5, 4, 3, 2, 1, 0, 0, 0, 0 };
         int rmSizeBeforeStart = rm.size();
         Xid xid = new MessagingXid(branchQualifier, 12435, globalTxId);
         res1.start(xid, XAResource.TMNOFLAGS);
         res1.end(xid, XAResource.TMSUCCESS);
         int rmAfter = rm.size();
         assertTrue(rmSizeBeforeStart + 1 == rmAfter);
         res1.start(xid, XAResource.TMJOIN);
         res1.end(xid, XAResource.TMSUCCESS);
         rmAfter = rm.size();
View Full Code Here

Examples of org.jbpm.graph.exe.ProcessInstance.end()

    {
      // End the process instance and any open tokens
      // TODO: Think about maybe canceling sub processes?
      cancelToken(pi.getRootToken());

      pi.end();

      log.info("finished process cancellation");
    }
    catch (RuntimeException ex)
    {
View Full Code Here

Examples of org.jbpm.graph.exe.Token.end()

  public void execute(ExecutionContext executionContext) {
    Token token = executionContext.getToken();

    boolean isAbleToReactivateParent = token.isAbleToReactivateParent();

    if (!token.hasEnded()) token.end(false);

    // if this token is not able to reactivate the parent,
    // we don't need to check anything
    if (isAbleToReactivateParent) {
      // the token arrived in the join and can only reactivate the parent once
View Full Code Here

Examples of org.jbpm.pvm.internal.model.ExecutionImpl.end()

  }

  public Object execute(Environment environment) throws Exception {
    DbSession dbSession = Environment.getFromCurrent(DbSession.class);
    ExecutionImpl processInstance = (ExecutionImpl) dbSession.findProcessInstanceById(processInstanceId);
    processInstance.end(state);
    return null;
  }
}
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.