T
- the type of the repositorypublic class Neo4jRepositoryFactoryBean<T extends Repository<S,ID>,S,ID extends Serializable> extends 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 RepositoryFactorySupport |
createRepositoryFactory(org.neo4j.ogm.session.Session session)
Returns a
RepositoryFactorySupport . |
protected RepositoryFactorySupport |
doCreateRepositoryFactory() |
void |
setMappingContext(MappingContext<?,?> mappingContext) |
void |
setSession(org.neo4j.ogm.session.Session session) |
createRepositoryFactory, setBeanFactory, setEnableDefaultTransactions, setTransactionManager
getEntityInformation, getObject, getObjectType, getPersistentEntity, getQueryMethods, getRepositoryInformation, isSingleton, setApplicationEventPublisher, setBeanClassLoader, setCustomImplementation, setEvaluationContextProvider, setLazyInit, setNamedQueries, setQueryLookupStrategyKey, setRepositoryBaseClass, setRepositoryFragments
public 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(MappingContext<?,?> mappingContext)
setMappingContext
in class RepositoryFactoryBeanSupport<T extends Repository<S,ID>,S,ID extends Serializable>
public void afterPropertiesSet()
afterPropertiesSet
in interface InitializingBean
afterPropertiesSet
in class RepositoryFactoryBeanSupport<T extends Repository<S,ID>,S,ID extends Serializable>
protected RepositoryFactorySupport doCreateRepositoryFactory()
doCreateRepositoryFactory
in class TransactionalRepositoryFactoryBeanSupport<T extends Repository<S,ID>,S,ID extends Serializable>
protected RepositoryFactorySupport createRepositoryFactory(org.neo4j.ogm.session.Session session)
RepositoryFactorySupport
.session
- Copyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.