public class NodeUtilities extends PropertyUtilities
| Constructor and Description |
|---|
NodeUtilities() |
| Modifier and Type | Method and Description |
|---|---|
static org.neo4j.graphdb.Node |
copyNode(org.neo4j.graphdb.GraphDatabaseService graphDb,
org.neo4j.graphdb.Node source) |
static org.neo4j.graphdb.Node |
findSingleNodeByLabelAndProperty(org.neo4j.graphdb.GraphDatabaseService graphDb,
org.neo4j.graphdb.Label label,
String key,
String value) |
static String[] |
getNodePropertyAsStringArrayValue(org.neo4j.graphdb.Node node,
String property)
Gets the string or string array value of property from node.
|
static org.neo4j.graphdb.Node |
getSingleNode(org.neo4j.graphdb.ResourceIterable<org.neo4j.graphdb.Node> iterable)
Returns the only node contained in iterable or null, if no such node exists.
|
static org.neo4j.graphdb.Node |
getSingleNode(org.neo4j.graphdb.ResourceIterator<org.neo4j.graphdb.Node> iterator) |
static org.neo4j.graphdb.Node |
getSingleOtherNode(org.neo4j.graphdb.Node node,
org.neo4j.graphdb.RelationshipType type) |
static String |
getString(org.neo4j.graphdb.Node term,
String property) |
addToArrayProperty, addToArrayProperty, addToArrayProperty, copyJSONObjectToPropertyContainer, copyJSONObjectToPropertyContainer, copyJSONObjectToPropertyContainer, findFirstValueInArrayProperty, getNodePropertiesAsString, getNonNullNodeProperty, hasContradictingPropertyValue, hasSamePropertyValue, mergeArrayProperty, mergeJSONObjectIntoPropertyContainer, mergeJSONObjectIntoPropertyContainer, mergeProperties, mergePropertyContainerIntoPropertyContainer, setNonNullNodeProperty, setNonNullNodePropertypublic static org.neo4j.graphdb.Node getSingleNode(org.neo4j.graphdb.ResourceIterable<org.neo4j.graphdb.Node> iterable)
iterable - IllegalStateException - If iterable contains more than one node.public static org.neo4j.graphdb.Node getSingleNode(org.neo4j.graphdb.ResourceIterator<org.neo4j.graphdb.Node> iterator)
public static org.neo4j.graphdb.Node findSingleNodeByLabelAndProperty(org.neo4j.graphdb.GraphDatabaseService graphDb,
org.neo4j.graphdb.Label label,
String key,
String value)
public static org.neo4j.graphdb.Node getSingleOtherNode(org.neo4j.graphdb.Node node,
org.neo4j.graphdb.RelationshipType type)
public static org.neo4j.graphdb.Node copyNode(org.neo4j.graphdb.GraphDatabaseService graphDb,
org.neo4j.graphdb.Node source)
public static String[] getNodePropertyAsStringArrayValue(org.neo4j.graphdb.Node node, String property)
node - property - Copyright © 2018 JULIE Lab Jena, Germany. All rights reserved.