Examples of update()


Examples of org.apache.http.auth.AuthState.update()

        final HttpRequestWrapper request = HttpRequestWrapper.wrap(get);
        final HttpClientContext context = HttpClientContext.create();

        final AuthState targetAuthState = new AuthState();
        targetAuthState.setState(AuthProtocolState.SUCCESS);
        targetAuthState.update(new BasicScheme(), new UsernamePasswordCredentials("user:pass"));
        final AuthState proxyAuthState = new AuthState();
        proxyAuthState.setState(AuthProtocolState.SUCCESS);
        proxyAuthState.update(new NTLMScheme(), new NTCredentials("user:pass"));
        context.setAttribute(HttpClientContext.TARGET_AUTH_STATE, targetAuthState);
        context.setAttribute(HttpClientContext.PROXY_AUTH_STATE, proxyAuthState);
View Full Code Here

Examples of org.apache.http.conn.OperatedClientConnection.update()

        // Now we have a tunnel to the target. As we will be creating a
        // layered TLS/SSL socket immediately afterwards, updating the
        // connection with the new target is optional - but good style.
        // The scheme part of the target is already "https", though the
        // connection is not yet switched to the TLS/SSL protocol.
        conn.update(null, target, false, getParams());

        System.out.println("layering secure connection");
        scop.updateSecureConnection(conn, target, ctx, getParams());

        // finally we have the secure connection and can send the request
View Full Code Here

Examples of org.apache.ibatis.cache.CacheKey.update()

  public CacheKey createCacheKey(MappedStatement ms, Object parameterObject, RowBounds rowBounds) {
    if (closed) throw new ExecutorException("Executor was closed.");
    BoundSql boundSql = ms.getBoundSql(parameterObject);
    CacheKey cacheKey = new CacheKey();
    cacheKey.update(ms.getId());
    cacheKey.update(rowBounds.getOffset());
    cacheKey.update(rowBounds.getLimit());
    cacheKey.update(boundSql.getSql());
    List<ParameterMapping> parameterMappings = boundSql.getParameterMappings();
    if (parameterMappings.size() > 0 && parameterObject != null) {
View Full Code Here

Examples of org.apache.ibatis.executor.Executor.update()

    return (Integer) transactionManager.doInTransaction(new TransactionScope() {
      public Object execute(Transaction transaction) throws SQLException {
        transaction.setCommitRequired(true);
        MappedStatement ms = configuration.getMappedStatement(id);
        Executor executor = transaction.getExecutor();
        return executor.update(ms, wrapCollection(parameterObject));
      }
    });
  }

  public Object queryForObject(String id) throws SQLException {
View Full Code Here

Examples of org.apache.ibatis.executor.statement.StatementHandler.update()

  public int doUpdate(MappedStatement ms, Object parameter)
      throws SQLException {
    Configuration configuration = ms.getConfiguration();
    StatementHandler handler = configuration.newStatementHandler(this, ms, parameter, RowBounds.DEFAULT, null);
    Statement stmt = prepareStatement(handler);
    return handler.update(stmt);
  }

  public List doQuery(MappedStatement ms, Object parameter, RowBounds rowBounds, ResultHandler resultHandler) throws SQLException {
    Configuration configuration = ms.getConfiguration();
    StatementHandler handler = configuration.newStatementHandler(this, ms, parameter, rowBounds, resultHandler);
View Full Code Here

Examples of org.apache.ibatis.session.SqlSession.update()

                while (iter.hasNext()) {
                    Object value = iter.next();
                    if (LOG.isTraceEnabled()) {
                        LOG.trace("Updating: " + value + " using statement: " + statement);
                    }
                    result = session.update(statement, value);
                    doProcessResult(exchange, result);
                }
            } else {
                if (LOG.isTraceEnabled()) {
                    LOG.trace("Updating using statement: " + statement);
View Full Code Here

Examples of org.apache.isis.runtimes.dflt.objectstores.sql.testsystem.SqlDataClassFactory.update()

        // simpleClass1.setString(stringList1.get(3));

        collection.remove(simpleClass1);
        // XML objectstore doesn't support this.
        if (getProperties().getProperty("isis.persistor") != "xml") {
            factory.update(collection);
        }

        factory.update(sqlDataClass);
    }
View Full Code Here

Examples of org.apache.isis.viewer.dnd.view.View.update()

            final View subview = subviews[i];
            final ObjectAssociation field = ((FieldContent) subview.getContent()).getField();
            final ObjectAdapter value = field.get(object);

            if (field.isOneToManyAssociation()) {
                subview.update(value);
            } else if (field.isOneToOneAssociation()) {
                final ObjectAdapter existing = subview.getContent().getAdapter();

                // if the field is parseable then it may have been modified; we
                // need to replace what was
View Full Code Here

Examples of org.apache.ivory.client.IvoryClient.update()

      result = client.submit(entityType, filePath);
    } else if (optionsList.contains(UPDATE_OPT)) {
      validateFilePath(optionsList, filePath);
      validateColo(optionsList);
      validateEntityName(optionsList, entityName);
      result = client.update(entityType, entityName, filePath);
    } else if (optionsList.contains(SUBMIT_AND_SCHEDULE_OPT)) {
      validateFilePath(optionsList, filePath);
      validateColo(optionsList);
      result = client.submitAndSchedule(entityType, filePath);
    } else if (optionsList.contains(VALIDATE_OPT)) {
View Full Code Here

Examples of org.apache.ivory.workflow.engine.OozieWorkflowEngine.update()

        DeploymentProperties.get().setProperty("deploy.mode", "standalone");
        StartupProperties.get().setProperty("current.colo", "ua1");
        OozieWorkflowEngine engine = new OozieWorkflowEngine();
        ConfigurationStore.get().initiateUpdate(newEntity);
        engine.update(obj, newEntity, newEntity.getClusters().getClusters().get(0).getName());
        engine.delete(newEntity);
        System.exit(0);
    }

    private static void store(EntityType eType, String xml) throws JAXBException, IvoryException {
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.