Spring Data Graph

org.springframework.data.neo4j.config
Class Neo4jConfiguration

java.lang.Object
  extended by org.springframework.data.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
 ConfigurationCheck configurationCheck()
           
protected  ConversionService conversionService()
           
 DirectGraphRepositoryFactory directGraphRepositoryFactory()
           
 javax.persistence.EntityManagerFactory getEntityManagerFactory()
           
 org.neo4j.graphdb.GraphDatabaseService getGraphDatabaseService()
           
 GraphDatabaseContext graphDatabaseContext()
           
protected  org.springframework.data.persistence.EntityInstantiator<NodeBacked,org.neo4j.graphdb.Node> graphEntityInstantiator()
           
protected  RelationshipEntityInstantiator graphRelationshipInstantiator()
           
 boolean isUsingCrossStorePersistence()
           
 org.springframework.data.neo4j.support.node.Neo4jNodeBacking neo4jNodeBacking()
           
 org.springframework.data.neo4j.support.relationship.Neo4jRelationshipBacking neo4jRelationshipBacking()
           
 DelegatingFieldAccessorFactory<NodeBacked> nodeDelegatingFieldAccessorFactory()
           
 NodeEntityStateFactory nodeEntityStateFactory()
           
 PersistenceExceptionTranslator persistenceExceptionTranslator()
           
 DelegatingFieldAccessorFactory<RelationshipBacked> relationshipDelegatingFieldAccessorFactory()
           
 RelationshipEntityStateFactory relationshipEntityStateFactory()
           
 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

conversionService

@Bean
protected ConversionService conversionService()
                                       throws Exception
Throws:
Exception

graphRelationshipInstantiator

@Bean
protected RelationshipEntityInstantiator graphRelationshipInstantiator()

graphEntityInstantiator

@Bean
protected org.springframework.data.persistence.EntityInstantiator<NodeBacked,org.neo4j.graphdb.Node> graphEntityInstantiator()

directGraphRepositoryFactory

@Bean
public DirectGraphRepositoryFactory directGraphRepositoryFactory()
                                                          throws Exception
Throws:
Exception

neo4jRelationshipBacking

@Bean
public org.springframework.data.neo4j.support.relationship.Neo4jRelationshipBacking neo4jRelationshipBacking()
                                                                                                      throws Exception
Throws:
Exception

relationshipEntityStateFactory

@Bean
public RelationshipEntityStateFactory relationshipEntityStateFactory()
                                                              throws Exception
Throws:
Exception

neo4jNodeBacking

@Bean
public org.springframework.data.neo4j.support.node.Neo4jNodeBacking neo4jNodeBacking()
                                                                              throws Exception
Throws:
Exception

nodeEntityStateFactory

@Bean
public NodeEntityStateFactory nodeEntityStateFactory()
                                              throws Exception
Throws:
Exception

nodeDelegatingFieldAccessorFactory

@Bean
public DelegatingFieldAccessorFactory<NodeBacked> nodeDelegatingFieldAccessorFactory()
                                                                              throws Exception
Throws:
Exception

relationshipDelegatingFieldAccessorFactory

@Bean
public DelegatingFieldAccessorFactory<RelationshipBacked> relationshipDelegatingFieldAccessorFactory()
                                                                                              throws Exception
Throws:
Exception

transactionManager

@Bean
public PlatformTransactionManager transactionManager()

configurationCheck

@Bean
public ConfigurationCheck configurationCheck()
                                      throws Exception
Throws:
Exception

persistenceExceptionTranslator

@Bean
public PersistenceExceptionTranslator persistenceExceptionTranslator()

Spring Data Graph

Copyright © 2011 SpringSource. All Rights Reserved.