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,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
ConstructorsModifierConstructorDescriptionprotectedNeo4jRepositoryFactoryBean(Class<? extends T> repositoryInterface) Creates a newTransactionalRepositoryFactoryBeanSupportfor the given repository interface. -
Method Summary
Modifier and TypeMethodDescriptionprotected RepositoryFactorySupportvoidsetNeo4jMappingContext(Neo4jMappingContext neo4jMappingContext) voidsetNeo4jOperations(Neo4jOperations neo4jOperations) Methods inherited from class org.springframework.data.repository.core.support.TransactionalRepositoryFactoryBeanSupport
createRepositoryFactory, setBeanFactory, setEnableDefaultTransactions, setTransactionManagerMethods inherited from class org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport
addRepositoryFactoryCustomizer, afterPropertiesSet, createDefaultQueryMethodEvaluationContextProvider, getEntityInformation, getObject, getObjectType, getPersistentEntity, getQueryMethods, getRepositoryInformation, isSingleton, setApplicationEventPublisher, setBeanClassLoader, setCustomImplementation, setEvaluationContextProvider, setLazyInit, setMappingContext, setNamedQueries, setQueryLookupStrategyKey, setRepositoryBaseClass, setRepositoryFragments
-
Constructor Details
-
Neo4jRepositoryFactoryBean
Creates a newTransactionalRepositoryFactoryBeanSupportfor the given repository interface.- Parameters:
repositoryInterface- must not be null.
-
-
Method Details
-
setNeo4jOperations
-
setNeo4jMappingContext
-
doCreateRepositoryFactory
- Specified by:
doCreateRepositoryFactoryin classTransactionalRepositoryFactoryBeanSupport<T extends Repository<S,ID>, S, ID extends Serializable>
-