Class Neo4jRepositoryFactoryBean<T extends Repository<S,ID>,S,ID extends Serializable>
java.lang.Object
org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport<T,S,ID>
org.springframework.data.repository.core.support.TransactionalRepositoryFactoryBeanSupport<T,S,ID>
org.springframework.data.neo4j.repository.support.Neo4jRepositoryFactoryBean<T,S,ID>
- Type Parameters:
T
- the type of the repositoryS
- type of the domain class to mapID
- identifier type in the domain class
- All Implemented Interfaces:
Aware
,BeanClassLoaderAware
,BeanFactoryAware
,FactoryBean<T>
,InitializingBean
,ApplicationEventPublisherAware
,EnvironmentAware
,RepositoryFactoryInformation<S,
ID>
@API(status=INTERNAL,
since="6.0")
public final class Neo4jRepositoryFactoryBean<T extends Repository<S,ID>,S,ID extends Serializable>
extends TransactionalRepositoryFactoryBeanSupport<T,S,ID>
Special adapter for Springs
FactoryBean
interface to allow easy setup of
repository factories via Spring configuration.- Since:
- 6.0
- Author:
- Michael J. Simons, Gerrit Meier
-
Field Summary
Fields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Neo4jRepositoryFactoryBean
(Class<? extends T> repositoryInterface) Creates a newTransactionalRepositoryFactoryBeanSupport
for the given repository interface. -
Method Summary
Modifier and TypeMethodDescriptionprotected RepositoryFactorySupport
void
setNeo4jMappingContext
(Neo4jMappingContext neo4jMappingContext) void
setNeo4jOperations
(Neo4jOperations neo4jOperations) Methods inherited from class org.springframework.data.repository.core.support.TransactionalRepositoryFactoryBeanSupport
createRepositoryFactory, setBeanFactory, setEnableDefaultTransactions, setTransactionManager
Methods inherited from class org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport
addRepositoryFactoryCustomizer, afterPropertiesSet, createDefaultEvaluationContextProvider, createDefaultQueryMethodEvaluationContextProvider, getEntityInformation, getObject, getObjectType, getPersistentEntity, getQueryMethods, getRepositoryInformation, isSingleton, setApplicationEventPublisher, setBeanClassLoader, setCustomImplementation, setEnvironment, setEvaluationContextProvider, setEvaluationContextProvider, setExposeMetadata, setLazyInit, setMappingContext, setNamedQueries, setQueryLookupStrategyKey, setRepositoryBaseClass, setRepositoryFragments
-
Constructor Details
-
Neo4jRepositoryFactoryBean
Creates a newTransactionalRepositoryFactoryBeanSupport
for the given repository interface.- Parameters:
repositoryInterface
- must not be null.
-
-
Method Details
-
setNeo4jOperations
-
setNeo4jMappingContext
-
doCreateRepositoryFactory
- Specified by:
doCreateRepositoryFactory
in classTransactionalRepositoryFactoryBeanSupport<T extends Repository<S,
ID>, S, ID extends Serializable>
-