Spring Data Neo4j

org.springframework.data.neo4j.rest
Class SpringRestGraphDatabase

java.lang.Object
  extended by org.neo4j.kernel.AbstractGraphDatabase
      extended by org.neo4j.rest.graphdb.RestGraphDatabase
          extended by org.springframework.data.neo4j.rest.SpringRestGraphDatabase
All Implemented Interfaces:
org.neo4j.graphdb.GraphDatabaseService, GraphDatabase

public class SpringRestGraphDatabase
extends org.neo4j.rest.graphdb.RestGraphDatabase
implements GraphDatabase


Constructor Summary
SpringRestGraphDatabase(org.neo4j.rest.graphdb.RestAPI api)
           
SpringRestGraphDatabase(org.neo4j.rest.graphdb.RestRequest restRequest)
           
SpringRestGraphDatabase(String uri)
           
SpringRestGraphDatabase(String uri, String user, String password)
           
 
Method Summary
<T extends org.neo4j.graphdb.PropertyContainer>
org.neo4j.graphdb.index.Index<T>
createIndex(Class<T> type, String indexName, IndexType indexType)
          creates a index
 org.neo4j.graphdb.Node createNode(Map<String,Object> props)
           
 org.neo4j.graphdb.Relationship createRelationship(org.neo4j.graphdb.Node startNode, org.neo4j.graphdb.Node endNode, org.neo4j.graphdb.RelationshipType type, Map<String,Object> props)
           
<T extends org.neo4j.graphdb.PropertyContainer>
org.neo4j.graphdb.index.Index<T>
getIndex(String indexName)
           
<T> QueryEngine<T>
queryEngineFor(QueryType type)
           
<T> QueryEngine<T>
queryEngineFor(QueryType type, ResultConverter resultConverter)
           
 void remove(org.neo4j.graphdb.Node node)
           
 void remove(org.neo4j.graphdb.Relationship relationship)
           
 void setConversionService(ConversionService conversionService)
           
 void setResultConverter(ResultConverter resultConverter)
           
 boolean transactionIsRunning()
           
 org.neo4j.graphdb.traversal.TraversalDescription traversalDescription()
           
 
Methods inherited from class org.neo4j.rest.graphdb.RestGraphDatabase
createNode, getConfig, getManagementBeans, getNodeById, getPropertyRefetchTimeInMillis, getReferenceNode, getRelationshipById, getRestAPI, getRestRequest, getStoreDir, index, isReadOnly
 
Methods inherited from class org.neo4j.kernel.AbstractGraphDatabase
getManagementBean, getSingleManagementBean, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.springframework.data.neo4j.core.GraphDatabase
getNodeById, getReferenceNode, getRelationshipById
 

Constructor Detail

SpringRestGraphDatabase

public SpringRestGraphDatabase(org.neo4j.rest.graphdb.RestAPI api)

SpringRestGraphDatabase

public SpringRestGraphDatabase(String uri)

SpringRestGraphDatabase

public SpringRestGraphDatabase(String uri,
                               String user,
                               String password)

SpringRestGraphDatabase

public SpringRestGraphDatabase(org.neo4j.rest.graphdb.RestRequest restRequest)
Method Detail

createNode

public org.neo4j.graphdb.Node createNode(Map<String,Object> props)
Specified by:
createNode in interface GraphDatabase

createRelationship

public org.neo4j.graphdb.Relationship createRelationship(org.neo4j.graphdb.Node startNode,
                                                         org.neo4j.graphdb.Node endNode,
                                                         org.neo4j.graphdb.RelationshipType type,
                                                         Map<String,Object> props)
Specified by:
createRelationship in interface GraphDatabase

getIndex

public <T extends org.neo4j.graphdb.PropertyContainer> org.neo4j.graphdb.index.Index<T> getIndex(String indexName)
Specified by:
getIndex in interface GraphDatabase
Parameters:
indexName - existing index name, not null
Returns:
existing index Index

createIndex

public <T extends org.neo4j.graphdb.PropertyContainer> org.neo4j.graphdb.index.Index<T> createIndex(Class<T> type,
                                                                                                    String indexName,
                                                                                                    IndexType indexType)
Description copied from interface: GraphDatabase
creates a index

Specified by:
createIndex in interface GraphDatabase
Parameters:
type - type of index requested - either Node.class or Relationship.class
Returns:
node index Index

traversalDescription

public org.neo4j.graphdb.traversal.TraversalDescription traversalDescription()
Specified by:
traversalDescription in interface GraphDatabase
Returns:
a TraversalDescription as starting point for defining a traversal

queryEngineFor

public <T> QueryEngine<T> queryEngineFor(QueryType type,
                                         ResultConverter resultConverter)
Specified by:
queryEngineFor in interface GraphDatabase

queryEngineFor

public <T> QueryEngine<T> queryEngineFor(QueryType type)
Specified by:
queryEngineFor in interface GraphDatabase

setConversionService

public void setConversionService(ConversionService conversionService)
Specified by:
setConversionService in interface GraphDatabase

transactionIsRunning

public boolean transactionIsRunning()
Specified by:
transactionIsRunning in interface GraphDatabase

remove

public void remove(org.neo4j.graphdb.Node node)
Specified by:
remove in interface GraphDatabase

remove

public void remove(org.neo4j.graphdb.Relationship relationship)
Specified by:
remove in interface GraphDatabase

setResultConverter

public void setResultConverter(ResultConverter resultConverter)
Specified by:
setResultConverter in interface GraphDatabase

Spring Data Neo4j

Copyright © 2011 SpringSource. All Rights Reserved.