Examples of UpdateVisitor


Examples of com.hp.hpl.jena.sparql.modify.request.UpdateVisitor

    /**
     * Called after all of the update operations have been added to {@link #accRequests}.
     */
    protected void execute()
    {
        UpdateVisitor worker = this.prepareWorker() ;
        for ( Update up : accRequests )
        {
            up.visit(worker) ;
        }
    }
View Full Code Here

Examples of com.hp.hpl.jena.sparql.modify.request.UpdateVisitor

    /**
     * Called after all of the update operations have been added to {@link #accRequests}.
     */
    protected void execute()
    {
        UpdateVisitor worker = this.prepareWorker() ;
        for ( Update up : accRequests )
        {
            up.visit(worker) ;
        }
    }
View Full Code Here

Examples of com.salesforce.dataloader.action.visitor.UpdateVisitor

        super(controller, monitor);
    }

    @Override
    protected DAOLoadVisitor createVisitor() {
        return new UpdateVisitor(getController(), getMonitor(), getSuccessWriter(), getErrorWriter());
    }
View Full Code Here

Examples of liquibase.changelog.visitor.UpdateVisitor

      checkDatabaseChangeLogTable(true, changeLog, contexts);

      changeLog.validate(database, contexts);
      ChangeLogIterator changeLogIterator = getStandardChangelogIterator(contexts, changeLog);

      changeLogIterator.run(new UpdateVisitor(database), database);
    } finally {
      try {
        lockService.releaseLock();
      } catch (LockException e) {
        LOGGER.error("Error while releasing db lock", e);
View Full Code Here

Examples of org.teiid.translator.salesforce.execution.visitors.UpdateVisitor

  }

  @SuppressWarnings("unchecked")
  @Override
  public void execute() throws TranslatorException {
    UpdateVisitor visitor = new UpdateVisitor(getMetadata());
    visitor.visit((Update)command);
    String[] Ids = getIDs(((Update)command).getWhere(), visitor);

    if (null != Ids && Ids.length > 0) {
      List<JAXBElement> elements = new ArrayList<JAXBElement>();
      for (SetClause clause : ((Update)command).getChanges()) {
        ColumnReference element = clause.getSymbol();
        Column column = element.getMetadataObject();
        String val = ((Literal) clause.getValue()).toString();
        JAXBElement messageElem = new JAXBElement(new QName(column.getNameInSource()), stringClazz, Util.stripQutes(val));
        elements.add(messageElem);
      }

      List<DataPayload> updateDataList = new ArrayList<DataPayload>();
      for (int i = 0; i < Ids.length; i++) {
        DataPayload data = new DataPayload();
        data.setType(visitor.getTableName());
        data.setID(Ids[i]);
        data.setMessageElements(elements);
        updateDataList.add(data);
      }
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.