T - the type of the repositorypublic class Neo4jRepositoryFactoryBean<T extends org.springframework.data.repository.Repository<S,ID>,S,ID extends Serializable>
extends org.springframework.data.repository.core.support.TransactionalRepositoryFactoryBeanSupport<T,S,ID>
FactoryBean interface to allow easy setup of
repository factories via Spring configuration.| Constructor and Description |
|---|
Neo4jRepositoryFactoryBean(Class<? extends T> repositoryInterface)
Creates a new
Neo4jRepositoryFactoryBean for the given repository interface. |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
protected org.springframework.data.repository.core.support.RepositoryFactorySupport |
createRepositoryFactory(org.neo4j.ogm.session.Session session)
Returns a
RepositoryFactorySupport. |
protected org.springframework.data.repository.core.support.RepositoryFactorySupport |
doCreateRepositoryFactory() |
void |
setMappingContext(org.springframework.data.mapping.context.MappingContext<?,?> mappingContext) |
void |
setSession(org.neo4j.ogm.session.Session session) |
createRepositoryFactory, setBeanFactory, setEnableDefaultTransactions, setTransactionManagergetEntityInformation, getObject, getObjectType, getPersistentEntity, getQueryMethods, getRepositoryInformation, isSingleton, setApplicationEventPublisher, setBeanClassLoader, setCustomImplementation, setEvaluationContextProvider, setLazyInit, setNamedQueries, setQueryLookupStrategyKey, setRepositoryBaseClass, setRepositoryFragmentspublic Neo4jRepositoryFactoryBean(Class<? extends T> repositoryInterface)
Neo4jRepositoryFactoryBean for the given repository interface.repositoryInterface - must not be null.@Autowired public void setSession(org.neo4j.ogm.session.Session session)
public void setMappingContext(org.springframework.data.mapping.context.MappingContext<?,?> mappingContext)
public void afterPropertiesSet()
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanafterPropertiesSet in class org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport<T extends org.springframework.data.repository.Repository<S,ID>,S,ID extends Serializable>protected org.springframework.data.repository.core.support.RepositoryFactorySupport doCreateRepositoryFactory()
protected org.springframework.data.repository.core.support.RepositoryFactorySupport createRepositoryFactory(org.neo4j.ogm.session.Session session)
RepositoryFactorySupport.session - Copyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.