Spring Data Neo4j

org.springframework.data.neo4j.config
Class Neo4jConfiguration

java.lang.Object
  extended by org.springframework.data.neo4j.config.Neo4jConfiguration
Direct Known Subclasses:
Neo4jAspectConfiguration

@Configuration
public abstract 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  JtaTransactionManager createJtaTransactionManager()
           
 Neo4jEntityFetchHandler entityFetchHandler()
           
 EntityStateHandler entityStateHandler()
           
 org.neo4j.graphdb.GraphDatabaseService getGraphDatabaseService()
           
 GraphDatabase graphDatabase()
           
protected  EntityInstantiator<org.neo4j.graphdb.Node> graphEntityInstantiator()
           
protected  RelationshipEntityInstantiator graphRelationshipInstantiator()
           
 IndexProvider indexProvider()
           
 Neo4jMappingContext mappingContext()
           
 MappingInfrastructure mappingInfrastructure()
           
protected  ConversionService neo4jConversionService()
           
 Neo4jTemplate neo4jTemplate()
           
 PlatformTransactionManager neo4jTransactionManager()
           
 DelegatingFieldAccessorFactory nodeDelegatingFieldAccessorFactory()
           
 NodeEntityStateFactory nodeEntityStateFactory()
           
 SourceStateTransmitter<org.neo4j.graphdb.Node> nodeStateTransmitter()
           
 org.springframework.data.convert.TypeMapper<org.neo4j.graphdb.Node> nodeTypeMapper()
           
 TypeRepresentationStrategy<org.neo4j.graphdb.Node> nodeTypeRepresentationStrategy()
           
 PersistenceExceptionTranslator persistenceExceptionTranslator()
           
 DelegatingFieldAccessorFactory relationshipDelegatingFieldAccessorFactory()
           
 RelationshipEntityStateFactory relationshipEntityStateFactory()
           
 org.springframework.data.convert.TypeMapper<org.neo4j.graphdb.Relationship> relationshipTypeMapper()
           
 TypeRepresentationStrategy<org.neo4j.graphdb.Relationship> relationshipTypeRepresentationStrategy()
           
 void setConversionService(ConversionService conversionService)
           
 void setGraphDatabaseService(org.neo4j.graphdb.GraphDatabaseService graphDatabaseService)
           
 TypeRepresentationStrategyFactory typeRepresentationStrategyFactory()
           
 
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()

setConversionService

@Qualifier(value="conversionService")
public void setConversionService(ConversionService conversionService)

setGraphDatabaseService

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

mappingInfrastructure

@Bean
public MappingInfrastructure mappingInfrastructure()
                                            throws Exception
Throws:
Exception

neo4jTemplate

@Bean(initMethod="postConstruct")
public Neo4jTemplate neo4jTemplate()
                            throws Exception
Throws:
Exception

relationshipTypeRepresentationStrategy

@Bean
public TypeRepresentationStrategy<org.neo4j.graphdb.Relationship> relationshipTypeRepresentationStrategy()
                                                                                                  throws Exception
Throws:
Exception

nodeTypeRepresentationStrategy

@Bean
public TypeRepresentationStrategy<org.neo4j.graphdb.Node> nodeTypeRepresentationStrategy()
                                                                                  throws Exception
Throws:
Exception

typeRepresentationStrategyFactory

@Bean
public TypeRepresentationStrategyFactory typeRepresentationStrategyFactory()
                                                                    throws Exception
Throws:
Exception

entityStateHandler

@Bean
public EntityStateHandler entityStateHandler()
                                      throws Exception
Throws:
Exception

nodeTypeMapper

@Bean
public org.springframework.data.convert.TypeMapper<org.neo4j.graphdb.Node> nodeTypeMapper()
                                                                                   throws Exception
Throws:
Exception

relationshipTypeMapper

@Bean
public org.springframework.data.convert.TypeMapper<org.neo4j.graphdb.Relationship> relationshipTypeMapper()
                                                                                                   throws Exception
Throws:
Exception

entityFetchHandler

@Bean
public Neo4jEntityFetchHandler entityFetchHandler()
                                           throws Exception
Throws:
Exception

nodeStateTransmitter

@Bean
public SourceStateTransmitter<org.neo4j.graphdb.Node> nodeStateTransmitter()
                                                                    throws Exception
Throws:
Exception

neo4jConversionService

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

graphRelationshipInstantiator

@Bean
protected RelationshipEntityInstantiator graphRelationshipInstantiator()
                                                                throws Exception
Throws:
Exception

graphEntityInstantiator

@Bean
protected EntityInstantiator<org.neo4j.graphdb.Node> graphEntityInstantiator()
                                                                      throws Exception
Throws:
Exception

mappingContext

@Bean
public Neo4jMappingContext mappingContext()
                                   throws Exception
Throws:
Exception

relationshipEntityStateFactory

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

nodeEntityStateFactory

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

nodeDelegatingFieldAccessorFactory

@Bean
public DelegatingFieldAccessorFactory nodeDelegatingFieldAccessorFactory()
                                                                  throws Exception
Throws:
Exception

relationshipDelegatingFieldAccessorFactory

@Bean
public DelegatingFieldAccessorFactory relationshipDelegatingFieldAccessorFactory()
                                                                          throws Exception
Throws:
Exception

neo4jTransactionManager

@Bean(name={"neo4jTransactionManager","transactionManager"})
@Qualifier(value="neo4jTransactionManager")
public PlatformTransactionManager neo4jTransactionManager()

createJtaTransactionManager

protected JtaTransactionManager createJtaTransactionManager()

graphDatabase

@Bean
public GraphDatabase graphDatabase()

configurationCheck

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

persistenceExceptionTranslator

@Bean
public PersistenceExceptionTranslator persistenceExceptionTranslator()

indexProvider

@Bean
public IndexProvider indexProvider()
                            throws Exception
Throws:
Exception

Spring Data Neo4j

Copyright © 2011 SpringSource. All Rights Reserved.