Package org.neo4j.graphdb

Examples of org.neo4j.graphdb.Node.addLabel()


        dbNode.removeLabel(remove);
      }

      // add difference
      for (final Label add : toAdd) {
        dbNode.addLabel(add);
      }
    }
  }
}
View Full Code Here


            if (state instanceof Node) {
                Node node = (Node) state;
                Set<String> oldLabels = getLabels(node);
                for (String newLabel : (Iterable<String>) newVal) {
                    if (oldLabels.remove(newLabel)) continue;
                    node.addLabel(DynamicLabel.label(newLabel));
                }
                for (String removedLabels : oldLabels) {
                    node.removeLabel(DynamicLabel.label(removedLabels));
                }
                return doReturn(newVal);
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.