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()
           
protected  EntityAlias entityAlias()
           
 Neo4jEntityFetchHandler entityFetchHandler()
           
 EntityStateHandler entityStateHandler()
           
 org.neo4j.graphdb.GraphDatabaseService getGraphDatabaseService()
           
 GraphDatabase graphDatabase()
           
protected  EntityInstantiator<org.neo4j.graphdb.Node> graphEntityInstantiator()
           
protected  RelationshipEntityInstantiator graphRelationshipInstantiator()
           
 IndexCreationMappingEventListener indexCreationMappingEventListener()
           
 IndexProvider indexProvider()
           
 MappingInfrastructureFactoryBean mappingInfrastructure()
           
protected  ConversionService neo4jConversionService()
           
 Neo4jMappingContext neo4jMappingContext()
           
 Neo4jTemplate neo4jTemplate()
           
 PlatformTransactionManager neo4jTransactionManager()
           
 FieldAccessorFactoryFactory 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()
           
 FieldAccessorFactoryFactory 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")
@Autowired(required=false)
public void setConversionService(ConversionService conversionService)

setGraphDatabaseService

@Autowired(required=true)
public void setGraphDatabaseService(org.neo4j.graphdb.GraphDatabaseService graphDatabaseService)

mappingInfrastructure

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

neo4jTemplate

@Bean
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

neo4jMappingContext

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

entityAlias

@Bean
protected EntityAlias entityAlias()

relationshipEntityStateFactory

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

nodeEntityStateFactory

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

nodeDelegatingFieldAccessorFactory

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

relationshipDelegatingFieldAccessorFactory

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

neo4jTransactionManager

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

indexCreationMappingEventListener

@Bean
public IndexCreationMappingEventListener indexCreationMappingEventListener()
                                                                    throws Exception
Throws:
Exception

createJtaTransactionManager

protected JtaTransactionManager createJtaTransactionManager()

graphDatabase

@Bean
@Autowired
@DependsOn(value="graphDatabaseService")
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 © 2012 SpringSource. All Rights Reserved.