Examples of execute()


Examples of org.springframework.data.repository.query.RepositoryQuery.execute()

    QueryString query = new GemfireQueryCreator(tree, method.getPersistentEntity())
      .createQuery(parameterAccessor.getSort());

    RepositoryQuery repositoryQuery = new StringBasedGemfireRepositoryQuery(query.toString(), method, template);

    return repositoryQuery.execute(prepareStringParameters(parameters));
  }

  private Object[] prepareStringParameters(Object[] parameters) {
    Iterator<Part> partsIterator = tree.getParts().iterator();
    List<Object> stringParameters = new ArrayList<Object>(parameters.length);
View Full Code Here

Examples of org.springframework.expression.ConstructorExecutor.execute()

    }

    ConstructorExecutor executorToUse = this.cachedExecutor;
    if (executorToUse != null) {
      try {
        return executorToUse.execute(state.getEvaluationContext(), arguments);
      }
      catch (AccessException ae) {
        // Two reasons this can occur:
        // 1. the method invoked actually threw a real exception
        // 2. the method invoked was not passed the arguments it expected and has become 'stale'
View Full Code Here

Examples of org.springframework.expression.MethodExecutor.execute()

    }

    MethodExecutor executorToUse = this.cachedExecutor;
    if (executorToUse != null) {
      try {
        return executorToUse.execute(
            state.getEvaluationContext(), state.getActiveContextObject().getValue(), arguments);
      }
      catch (AccessException ae) {
        // Two reasons this can occur:
        // 1. the method invoked actually threw a real exception
View Full Code Here

Examples of org.springframework.extensions.jcr.JcrTemplate.execute()

      // run as repo super user
      PentahoSessionHolder.setSession( createRepositoryAdminPentahoSession( repositoryAdminUsername ) );
      try {
        txnTemplate.execute( new TransactionCallbackWithoutResult() {
          public void doInTransactionWithoutResult( final TransactionStatus status ) {
            jcrTemplate.execute( new JcrCallback() {
              public Object doInJcr( final Session session ) throws RepositoryException, IOException {
                switch ( mode ) {
                  case SYS: {
                    final boolean SKIP_BINARY = false;
                    final boolean NO_RECURSE = false;
View Full Code Here

Examples of org.springframework.extensions.webscripts.WebScript.execute()

    try {
      final Match match = uriIndex.findWebScript(httpMethod.name(), uri);
      assertNotNull(String.format("Could not find annotation-based WebScript for method '%s' and URI '%s'.",
          httpMethod, uri), match);
      final WebScript webScript = match.getWebScript();
      webScript.execute(request.setServiceMatch(match), response);
    } catch (final IOException e) {
      throw new RuntimeException(e);
    }
  }
View Full Code Here

Examples of org.springframework.http.client.ClientHttpRequest.execute()

    public void delete(final Long taskId) {
        ClientHttpResponse response = null;
        try {
            ClientHttpRequest request = getRestTemplate().getRequestFactory().createRequest(
                    URI.create(baseUrl + "task/delete/" + taskId), HttpMethod.GET);
            response = request.execute();
        } catch (IOException e) {
            throw new WebServiceException("Cannot send request to delete task " + taskId, e);
        } finally {
            if (response != null) {
                response.close();
View Full Code Here

Examples of org.springframework.jca.cci.core.CciTemplate.execute()

    connectionFactoryControl.replay();
    connectionControl.replay();
    interactionControl.replay();

    CciTemplate ct = new CciTemplate(connectionFactory);
    ct.execute(interactionSpec, inputRecord, outputRecord);

    connectionFactoryControl.verify();
    connectionControl.verify();
    interactionControl.verify();
  }
View Full Code Here

Examples of org.springframework.jca.cci.object.SimpleRecordOperation.execute()

    connectionFactoryControl.replay();
    connectionControl.replay();
    interactionControl.replay();

    query.execute(inputRecord);

    connectionFactoryControl.verify();
    connectionControl.verify();
    interactionControl.verify();
  }
View Full Code Here

Examples of org.springframework.jdbc.core.JdbcOperations.execute()

        for (final Entry<String, JdbcOperations> jdbcEntry : this.jdbcOperations.entrySet()) {
            final String jdbcName = jdbcEntry.getKey();
            try {
                logger.info("\t" + jdbcName);
                final JdbcOperations jdbcOps = jdbcEntry.getValue();
                jdbcOps.execute(new ConnectionCallback<Object>() {
                    @Override
                    public Object doInConnection(Connection con) throws SQLException, DataAccessException {
                        printInfo(con);
                        return null;
                    }
View Full Code Here

Examples of org.springframework.jdbc.core.JdbcTemplate.execute()

        for (String idx : indexes.stringPropertyNames()) {
            LOG.debug("Creating index {}", indexes.get(idx).toString());

            try {
                jdbcTemplate.execute(indexes.get(idx).toString());
            } catch (DataAccessException e) {
                LOG.error("Could not create index ", e);
            }
        }
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.