org.springframework.data.neo4j.config
Class Neo4jConfiguration
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Neo4jConfiguration
public Neo4jConfiguration()
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()
Copyright © 2011 SpringSource. All Rights Reserved.