1 package org.openkilda.neo;
3 import org.neo4j.graphdb.*;
12 public class OkNode implements Node {
26 return new NeoUtils.
OkEdge(this.n.createRelationshipTo(other.n,r));
40 public void delete() {
46 return n.getRelationships();
51 return n.hasRelationship();
60 public Iterable<Relationship>
getRelationships(Direction direction, RelationshipType... types) {
Iterable< String > getPropertyKeys()
boolean hasRelationship()
GraphDatabaseService getGraphDatabase()
boolean hasRelationship(RelationshipType... types)
Iterable< Label > getLabels()
Iterable< Relationship > getRelationships()
Relationship createRelationshipTo(Node otherNode, RelationshipType type)
Map< String, Object > getAllProperties()
Object getProperty(String key)
boolean hasLabel(Label label)
Object getProperty(String key, Object defaultValue)
int getDegree(RelationshipType type, Direction direction)
void setProperty(String key, Object value)
Map< String, Object > getProperties(String... keys)
int getDegree(RelationshipType type)
int getDegree(Direction direction)
OkNode property(String s, Object o)
void removeLabel(Label label)
Relationship getSingleRelationship(RelationshipType type, Direction dir)
boolean hasRelationship(Direction direction, RelationshipType... types)
Iterable< Relationship > getRelationships(RelationshipType... types)
Object removeProperty(String key)
NeoUtils.OkEdge edge(RelationshipType r, OkNode other)
Iterable< RelationshipType > getRelationshipTypes()
Iterable< Relationship > getRelationships(Direction dir)
boolean hasRelationship(Direction dir)
boolean hasProperty(String key)
Iterable< Relationship > getRelationships(Direction direction, RelationshipType... types)
void addLabel(Label label)
Iterable< Relationship > getRelationships(RelationshipType type, Direction dir)
boolean hasRelationship(RelationshipType type, Direction dir)