org.springframework.data.graph.neo4j.rest.support
Class RestEntity
java.lang.Object
org.springframework.data.graph.neo4j.rest.support.RestEntity
- All Implemented Interfaces:
- org.neo4j.graphdb.PropertyContainer
- Direct Known Subclasses:
- RestNode, RestRelationship
public class RestEntity
- extends Object
- implements org.neo4j.graphdb.PropertyContainer
restRequest
protected RestRequest restRequest
RestEntity
public RestEntity(URI uri,
RestGraphDatabase graphDatabase)
RestEntity
public RestEntity(String uri,
RestGraphDatabase graphDatabase)
RestEntity
public RestEntity(Map<?,?> data,
RestGraphDatabase graphDatabase)
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
Copyright © 2011. All Rights Reserved.