Package org.dbwiki.data.database

Examples of org.dbwiki.data.database.DatabaseNode.parent()


 
  public ResourceIdentifier insertNode(NodeIdentifier identifier, DocumentNode node, Version version) throws org.dbwiki.exception.WikiException {
    RDBMSDatabaseGroupNode parent = (RDBMSDatabaseGroupNode)DatabaseReader.get(_con, _database, identifier);
   
    DatabaseNode entry = parent;
    while (entry.parent() != null) {
      entry = entry.parent();
    }

    // Idea:  Find size of inserted subtree.
    // Let newpre be the post index of the parent.
View Full Code Here


  public ResourceIdentifier insertNode(NodeIdentifier identifier, DocumentNode node, Version version) throws org.dbwiki.exception.WikiException {
    RDBMSDatabaseGroupNode parent = (RDBMSDatabaseGroupNode)DatabaseReader.get(_con, _database, identifier);
   
    DatabaseNode entry = parent;
    while (entry.parent() != null) {
      entry = entry.parent();
    }

    // Idea:  Find size of inserted subtree.
    // Let newpre be the post index of the parent.
    // Index to-be-inserted nodes starting from post, ending at newpost
View Full Code Here

   * @param node
   * @throws org.dbwiki.exception.WikiException
   */
  public void updateNode(DatabaseNode node) throws org.dbwiki.exception.WikiException {
    DatabaseNode entry = node;
    while (entry.parent() != null) {
      entry = entry.parent();
    }

    try {
      int entryID = ((NodeIdentifier)entry.identifier()).nodeID();
View Full Code Here

   * @throws org.dbwiki.exception.WikiException
   */
  public void updateNode(DatabaseNode node) throws org.dbwiki.exception.WikiException {
    DatabaseNode entry = node;
    while (entry.parent() != null) {
      entry = entry.parent();
    }

    try {
      int entryID = ((NodeIdentifier)entry.identifier()).nodeID();
     
View Full Code Here

    DatabaseElementNode targetElement = null;
   
    if (!target.isRootIdentifier()) {
      DatabaseNode targetNode = get(target);
      if (targetNode.isText()) {
        targetElement = targetNode.parent();
      } else {
        targetElement = (DatabaseElementNode)targetNode;
      }
    } else if (!pasteNode.isElement()) {
      throw new WikiDataException(WikiDataException.InvalidPasteTarget, target.toParameterString());
View Full Code Here

                targetName = elementName + "/" + targetName;
              } else {
                targetName = elementName;
              }
            }
            node = node.parent();
          }
          if ((targetName == null) && (targetNode.isText())) {
            targetName = "\'" + ((DatabaseTextNode)targetNode).getValue() + "\'";
            //targetName = "this";
          }
View Full Code Here

          line = link + " > " + line;
        } else {
          line = link;
        }
      }
      node = node.parent();
    }
    if (line != null) {
      body.paragraph(line, CSS.CSSObjectPath);
    }
  }
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.