Spring Data Graph

org.springframework.data.neo4j.rest
Class RestEntity

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

public class RestEntity
extends Object
implements org.neo4j.graphdb.PropertyContainer


Field Summary
protected  RestRequest restRequest
           
 
Constructor Summary
RestEntity(Map<?,?> data, RestGraphDatabase graphDatabase)
           
RestEntity(String uri, RestGraphDatabase graphDatabase)
           
RestEntity(URI uri, RestGraphDatabase graphDatabase)
           
 
Method Summary
 void delete()
           
 boolean equals(Object o)
           
 org.neo4j.graphdb.GraphDatabaseService getGraphDatabase()
           
 long getId()
           
 Object getProperty(String key)
           
 Object getProperty(String key, Object defaultValue)
           
 Iterable<String> getPropertyKeys()
           
 Iterable<Object> getPropertyValues()
           
 RestGraphDatabase getRestGraphDatabase()
           
 RestRequest getRestRequest()
           
 String getUri()
           
 int hashCode()
           
 boolean hasProperty(String key)
           
 Object removeProperty(String key)
           
 void setProperty(String key, Object value)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

restRequest

protected RestRequest restRequest
Constructor Detail

RestEntity

public RestEntity(URI uri,
                  RestGraphDatabase graphDatabase)

RestEntity

public RestEntity(String uri,
                  RestGraphDatabase graphDatabase)

RestEntity

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

getUri

public String getUri()

getProperty

public Object getProperty(String key)
Specified by:
getProperty in interface org.neo4j.graphdb.PropertyContainer

getProperty

public Object getProperty(String key,
                          Object defaultValue)
Specified by:
getProperty in interface org.neo4j.graphdb.PropertyContainer

getPropertyKeys

public Iterable<String> getPropertyKeys()
Specified by:
getPropertyKeys in interface org.neo4j.graphdb.PropertyContainer

getPropertyValues

public Iterable<Object> getPropertyValues()
Specified by:
getPropertyValues in interface org.neo4j.graphdb.PropertyContainer

hasProperty

public boolean hasProperty(String key)
Specified by:
hasProperty in interface org.neo4j.graphdb.PropertyContainer

removeProperty

public Object removeProperty(String key)
Specified by:
removeProperty in interface org.neo4j.graphdb.PropertyContainer

setProperty

public void setProperty(String key,
                        Object value)
Specified by:
setProperty in interface org.neo4j.graphdb.PropertyContainer

getId

public long getId()

delete

public void delete()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object

getGraphDatabase

public org.neo4j.graphdb.GraphDatabaseService getGraphDatabase()
Specified by:
getGraphDatabase in interface org.neo4j.graphdb.PropertyContainer

getRestGraphDatabase

public RestGraphDatabase getRestGraphDatabase()

getRestRequest

public RestRequest getRestRequest()

toString

public String toString()
Overrides:
toString in class Object

Spring Data Graph

Copyright © 2011 SpringSource. All Rights Reserved.