Package org.dbwiki.data.database

Examples of org.dbwiki.data.database.NodeUpdate


      assert(targetElement != null);
      if (!targetElement.isAttribute()) {
        throw new WikiDataException(WikiDataException.InvalidPasteTarget, target.toParameterString());
      }
      Update update = new Update();
      update.add(new NodeUpdate(targetElement.identifier(), ((PasteTextNode)pasteNode).getValue()));
      updateNodeWrapped(targetElement, update, _versionIndex.getNextVersion(new ProvenanceCopy(user, targetElement.identifier(), sourceURL)));
    }
  }
View Full Code Here


        hasChanges = updateTextNodeTimestamps(con, ((DatabaseAttributeNode)element).value().getCurrent(), update.get(0), version);
      } else {
        Hashtable<String, DatabaseTextNode> valueIndex = new Hashtable<String, DatabaseTextNode>();
        getValueIndex((DatabaseGroupNode)element, valueIndex);
        for (int iUpdate = 0; iUpdate < update.size(); iUpdate++) {
          NodeUpdate upd = update.get(iUpdate);
          if (updateTextNodeTimestamps(con, valueIndex.get(upd.identifier().toParameterString()), upd, version)) {
            hasChanges = true;
          }
        }
      }
    } else {
View Full Code Here

    for (int iParameter = 0; iParameter < request.parameters().size(); iParameter++) {
      RequestParameter parameter = request.parameters().get(iParameter);
      if (parameter.name().startsWith(RequestParameter.TextFieldIndicator)) {
        if (parameter.hasValue()) {
          if (!parameter.value().equals("")) {
            updates.add(new NodeUpdate(database().getIdentifierForParameterString(parameter.name().substring(RequestParameter.TextFieldIndicator.length())), parameter.value()));
          }
        }
      }
    }
View Full Code Here

TOP

Related Classes of org.dbwiki.data.database.NodeUpdate

Copyright © 2018 www.massapicom. 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.