Package org.dbwiki.data.database

Examples of org.dbwiki.data.database.DatabaseGroupNode.children()


    // below the ID of the given node
    if (node.parent() != null) {
      if (node.parent().isGroup()) {
        DatabaseGroupNode parent = (DatabaseGroupNode)node.parent();
        for (int iChild = 0; iChild < parent.children().size(); iChild++) {
          DatabaseElementNode child = parent.children().get(iChild);
          if (child.schema().equals(node.schema())) {
            if (child.identifier().compareTo(node.identifier()) < 0) {
              nodeIndex++;
            }
          }
View Full Code Here


          insertTimestamp(con, value, value.getTimestamp().continueAt(version.number()));
        }
      }
    } else {
      DatabaseGroupNode group = (DatabaseGroupNode)node;
      for (int iChild = 0; iChild < group.children().size(); iChild++) {
        DatabaseElementNode child = group.children().get(iChild);
        if ((child.hasTimestamp()) && (child.getTimestamp().lastValue() == deletedAt)) {
          insertTimestamp(con, child, child.getTimestamp().continueAt(version.number()));
        }
        activateElementNode(con, child, deletedAt, version);
View Full Code Here

        }
      }
    } else {
      DatabaseGroupNode group = (DatabaseGroupNode)node;
      for (int iChild = 0; iChild < group.children().size(); iChild++) {
        DatabaseElementNode child = group.children().get(iChild);
        if ((child.hasTimestamp()) && (child.getTimestamp().lastValue() == deletedAt)) {
          insertTimestamp(con, child, child.getTimestamp().continueAt(version.number()));
        }
        activateElementNode(con, child, deletedAt, version);
      }
View Full Code Here

          updateTimestamp(con, value, value.getTimestamp().finishAt(version.number() - 1));
        }
      }
    } else {
      DatabaseGroupNode group = (DatabaseGroupNode)node;
      for (int iChild = 0; iChild < group.children().size(); iChild++) {
        DatabaseElementNode child = group.children().get(iChild);
        if ((child.hasTimestamp()) && (child.getTimestamp().isCurrent())) {
          updateTimestamp(con, child, child.getTimestamp().finishAt(version.number() - 1));
        }
        deleteElementNode(con, child, version);
View Full Code Here

        }
      }
    } else {
      DatabaseGroupNode group = (DatabaseGroupNode)node;
      for (int iChild = 0; iChild < group.children().size(); iChild++) {
        DatabaseElementNode child = group.children().get(iChild);
        if ((child.hasTimestamp()) && (child.getTimestamp().isCurrent())) {
          updateTimestamp(con, child, child.getTimestamp().finishAt(version.number() - 1));
        }
        deleteElementNode(con, child, version);
      }
View Full Code Here

          }
          out.writeAttributeNode(attribute, value,last);
        } else {
          DatabaseGroupNode group = (DatabaseGroupNode)element;
          out.startGroupNode(group);
          for (int iChild = 0; iChild < group.children().size(); iChild++) {
            boolean newLast = iChild == group.children().size() - 1;
            exportNode(group.children().get(iChild), version, out, newLast);
          }
          out.endGroupNode(group,last);
        }
View Full Code Here

          out.writeAttributeNode(attribute, value,last);
        } else {
          DatabaseGroupNode group = (DatabaseGroupNode)element;
          out.startGroupNode(group);
          for (int iChild = 0; iChild < group.children().size(); iChild++) {
            boolean newLast = iChild == group.children().size() - 1;
            exportNode(group.children().get(iChild), version, out, newLast);
          }
          out.endGroupNode(group,last);
        }
      } else {
View Full Code Here

        } else {
          DatabaseGroupNode group = (DatabaseGroupNode)element;
          out.startGroupNode(group);
          for (int iChild = 0; iChild < group.children().size(); iChild++) {
            boolean newLast = iChild == group.children().size() - 1;
            exportNode(group.children().get(iChild), version, out, newLast);
          }
          out.endGroupNode(group,last);
        }
      } else {
        out.writeTextNode((DatabaseTextNode)node);
View Full Code Here

   
    boolean nonEmpty = false;
    for (int i = 0; i < rs.size(); i++) {
      DatabaseGroupNode r = (DatabaseGroupNode)rs.get(i);

      DatabaseElementList children = r.children();
      if(children.size() < 2)
        continue;

      DatabaseElementList matches = children.get(labels.get(0));
      if(matches.size() == 0)
View Full Code Here

   
    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

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.