Spring Data Graph

org.springframework.data.neo4j.rest
Class RestRelationship

java.lang.Object
  extended by org.springframework.data.neo4j.rest.RestEntity
      extended by org.springframework.data.neo4j.rest.RestRelationship
All Implemented Interfaces:
org.neo4j.graphdb.PropertyContainer, org.neo4j.graphdb.Relationship

public class RestRelationship
extends RestEntity
implements org.neo4j.graphdb.Relationship


Field Summary
 
Fields inherited from class org.springframework.data.neo4j.rest.RestEntity
restRequest
 
Constructor Summary
RestRelationship(Map<?,?> data, RestGraphDatabase graphDatabase)
           
 
Method Summary
static org.neo4j.graphdb.Relationship create(RestNode startNode, RestNode endNode, org.neo4j.graphdb.RelationshipType type, Map<String,Object> props)
           
 org.neo4j.graphdb.Node getEndNode()
           
 org.neo4j.graphdb.Node[] getNodes()
           
 org.neo4j.graphdb.Node getOtherNode(org.neo4j.graphdb.Node node)
           
 org.neo4j.graphdb.Node getStartNode()
           
 org.neo4j.graphdb.RelationshipType getType()
           
 boolean isType(org.neo4j.graphdb.RelationshipType type)
           
 
Methods inherited from class org.springframework.data.neo4j.rest.RestEntity
delete, equals, getGraphDatabase, getId, getProperty, getProperty, getPropertyKeys, getPropertyValues, getRestGraphDatabase, getRestRequest, getUri, hashCode, hasProperty, removeProperty, setProperty, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.neo4j.graphdb.Relationship
delete, getId
 
Methods inherited from interface org.neo4j.graphdb.PropertyContainer
getGraphDatabase, getProperty, getProperty, getPropertyKeys, getPropertyValues, hasProperty, removeProperty, setProperty
 

Constructor Detail

RestRelationship

public RestRelationship(Map<?,?> data,
                        RestGraphDatabase graphDatabase)
Method Detail

getEndNode

public org.neo4j.graphdb.Node getEndNode()
Specified by:
getEndNode in interface org.neo4j.graphdb.Relationship

getNodes

public org.neo4j.graphdb.Node[] getNodes()
Specified by:
getNodes in interface org.neo4j.graphdb.Relationship

getOtherNode

public org.neo4j.graphdb.Node getOtherNode(org.neo4j.graphdb.Node node)
Specified by:
getOtherNode in interface org.neo4j.graphdb.Relationship

getStartNode

public org.neo4j.graphdb.Node getStartNode()
Specified by:
getStartNode in interface org.neo4j.graphdb.Relationship

getType

public org.neo4j.graphdb.RelationshipType getType()
Specified by:
getType in interface org.neo4j.graphdb.Relationship

isType

public boolean isType(org.neo4j.graphdb.RelationshipType type)
Specified by:
isType in interface org.neo4j.graphdb.Relationship

create

public static org.neo4j.graphdb.Relationship create(RestNode startNode,
                                                    RestNode endNode,
                                                    org.neo4j.graphdb.RelationshipType type,
                                                    Map<String,Object> props)

Spring Data Graph

Copyright © 2011 SpringSource. All Rights Reserved.