Spring Data Graph

org.springframework.data.graph.neo4j.config
Class Neo4jConfiguration

java.lang.Object
  extended by org.springframework.data.graph.neo4j.config.Neo4jConfiguration

@Configuration
public class Neo4jConfiguration
extends Object

Abstract base class for code based configuration of Spring managed Neo4j infrastructure.

Subclasses are required to provide an implementation of graphDbService ....

Author:
Thomas Risberg

Constructor Summary
Neo4jConfiguration()
           
 
Method Summary
 FinderFactory finderFactory(GraphDatabaseContext graphDatabaseContext)
           
 javax.persistence.EntityManagerFactory getEntityManagerFactory()
           
 org.neo4j.graphdb.GraphDatabaseService getGraphDatabaseService()
           
 GraphDatabaseContext graphDatabaseContext()
           
 boolean isUsingCrossStorePersistence()
           
 org.springframework.data.graph.neo4j.support.node.Neo4jNodeBacking neo4jNodeBacking(GraphDatabaseContext graphDatabaseContext, FinderFactory finderFactory)
           
 org.springframework.data.graph.neo4j.support.relationship.Neo4jRelationshipBacking neo4jRelationshipBacking(GraphDatabaseContext graphDatabaseContext, FinderFactory finderFactory)
           
 void setEntityManagerFactory(javax.persistence.EntityManagerFactory entityManagerFactory)
           
 void setGraphDatabaseService(org.neo4j.graphdb.GraphDatabaseService graphDatabaseService)
           
 PlatformTransactionManager transactionManager()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Neo4jConfiguration

public Neo4jConfiguration()
Method Detail

getGraphDatabaseService

public org.neo4j.graphdb.GraphDatabaseService getGraphDatabaseService()

setGraphDatabaseService

public void setGraphDatabaseService(org.neo4j.graphdb.GraphDatabaseService graphDatabaseService)

getEntityManagerFactory

public javax.persistence.EntityManagerFactory getEntityManagerFactory()

setEntityManagerFactory

@Qualifier(value="&entityManagerFactory")
public void setEntityManagerFactory(javax.persistence.EntityManagerFactory entityManagerFactory)

isUsingCrossStorePersistence

public boolean isUsingCrossStorePersistence()

graphDatabaseContext

@Bean
public GraphDatabaseContext graphDatabaseContext()
                                          throws Exception
Throws:
Exception

finderFactory

@Bean
public FinderFactory finderFactory(GraphDatabaseContext graphDatabaseContext)
                            throws Exception
Throws:
Exception

neo4jRelationshipBacking

@Bean
public org.springframework.data.graph.neo4j.support.relationship.Neo4jRelationshipBacking neo4jRelationshipBacking(GraphDatabaseContext graphDatabaseContext,
                                                                                                                        FinderFactory finderFactory)

neo4jNodeBacking

@Bean
public org.springframework.data.graph.neo4j.support.node.Neo4jNodeBacking neo4jNodeBacking(GraphDatabaseContext graphDatabaseContext,
                                                                                                FinderFactory finderFactory)

transactionManager

@Bean
public PlatformTransactionManager transactionManager()

Spring Data Graph

Copyright © 2011. All Rights Reserved.