Package org.dbwiki.data.database

Examples of org.dbwiki.data.database.DatabaseGroupNode


    body.add("<script>");
    body.add("  drawMap('"+ mapId +"',\n[");
   
    boolean nonEmpty = false;
    for (int i = 0; i < rs.size(); i++) {
      DatabaseGroupNode r = (DatabaseGroupNode)rs.get(i);

      DatabaseElementList children = r.children();
      if(children.size() == 0)
        continue;

      ArrayList<String> components = new ArrayList<String>();
      for(int j = 0; j < labels.size(); j++) {
View Full Code Here


          }
        }
      }
      return false;
    } else {
      DatabaseGroupNode group = (DatabaseGroupNode)node;
      for (int iChild = 0; iChild < group.children().size(); iChild++) {
        if (this.wasModified(group.children().get(iChild))) {
          return true;
        }
      }
      return false;
    }
View Full Code Here

    // Collect all the entries that potentially match the query condition. For each of the
    // candidate entries we then evaluate the query statement and add the results to the
    // QueryResultSet.
    DatabaseContent content = _database.getMatchingEntries(_query.getConditionListing());
    for (int iEntry = 0; iEntry < content.size(); iEntry++) {
      DatabaseGroupNode entry = (DatabaseGroupNode)_database.get(content.get(iEntry).identifier());
      if (_query.getVersionClause() != null) {
        entry = this.versionReader(entry, _query.getVersionClause().getTimestamp());
        if (entry != null) {
          new AbsoluteXPathConsumer().consume(entry, _query.rootTargetPath(), queryHandler);
        }
View Full Code Here


    QueryResultSet result = new QueryResultSet();
    DatabaseContent content = _database.getMatchingEntries(_targetPath.getConditionListing());
    for (int iEntry = 0; iEntry < content.size(); iEntry++) {
      DatabaseGroupNode entry = (DatabaseGroupNode)_database.get(content.get(iEntry).identifier());
      new AbsoluteXPathConsumer().consume(entry, _targetPath, result);

    }

    return result;
View Full Code Here

          timestamp = timestamp.union(node.getTimestamp());
        } else {
          timestamp = node.getTimestamp();
        }
      }
      DatabaseGroupNode result = new ResultGroupNode(_resultSchema, timestamp);
      for (DatabaseElementNode node : outputNodes) {
        result.children().add(node);
      }
      consumer.handle(result);
    }
  }
View Full Code Here

            matches = true;
            break;
          }
        }
      } else {
        DatabaseGroupNode group = (DatabaseGroupNode)node;
        for (int iElement = 0; iElement < group.children().size(); iElement++) {
          if (matches(group.children().get(iElement))) {
            matches = true;
            break;
          }
        }
      }
View Full Code Here

      }
    }

    if (rule != null) {
      DatabaseElementList nodes = node.find(rule.node().path().substring(node.schema().path().length() + 1));
      DatabaseGroupNode nextNode = null;
      for (int iNode = 0; iNode < nodes.size(); iNode++) {
        DatabaseGroupNode childNode = (DatabaseGroupNode)nodes.get(iNode);
        if (versionParameter.matches(childNode)) {
          int matches = 0;
          DatabaseElementList valueNodes = childNode.find(rule.value().path().substring(childNode.schema().path().length() + 1));
          for (int iValueNode = 0; iValueNode < valueNodes.size(); iValueNode++) {
            DatabaseAttributeNode attributeNode = (DatabaseAttributeNode)valueNodes.get(iValueNode);
            for (int iAttrValue = 0; iAttrValue < attributeNode.value().size(); iAttrValue++) {
              DatabaseTextNode textNode = attributeNode.value().get(iAttrValue);
              if ((versionParameter.matches(textNode)) && (textNode.value().equals(keyValue))) {
View Full Code Here

TOP

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

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.