Class BlazePersistenceRepositoryFactoryBean<T extends org.springframework.data.repository.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>
com.blazebit.persistence.spring.data.impl.repository.BlazePersistenceRepositoryFactoryBean<T,S,ID>
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanClassLoaderAware,org.springframework.beans.factory.BeanFactoryAware,org.springframework.beans.factory.FactoryBean<T>,org.springframework.beans.factory.InitializingBean,org.springframework.context.ApplicationEventPublisherAware,org.springframework.data.repository.core.support.RepositoryFactoryInformation<S,ID>
public class BlazePersistenceRepositoryFactoryBean<T extends org.springframework.data.repository.Repository<S,ID>,S,ID extends Serializable>
extends org.springframework.data.repository.core.support.TransactionalRepositoryFactoryBeanSupport<T,S,ID>
- Since:
- 1.2.0
- Author:
- Moritz Becker
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCreates a newBlazePersistenceRepositoryFactoryBean.protectedBlazePersistenceRepositoryFactoryBean(Class<? extends T> repositoryInterface) Creates a newBlazePersistenceRepositoryFactoryBeanfor the given repository interface. -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected BlazePersistenceRepositoryFactorycreateRepositoryFactory(javax.persistence.EntityManager entityManager) Returns aRepositoryFactorySupport.protected BlazePersistenceRepositoryFactorycharbooleanvoidsetEntityManager(javax.persistence.EntityManager entityManager) TheEntityManagerto be used.voidsetEscapeCharacter(char escapeCharacter) voidsetMappingContext(org.springframework.data.mapping.context.MappingContext<?, ?> mappingContext) 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
getEntityInformation, getObject, getObjectType, getPersistentEntity, getQueryMethods, getRepositoryInformation, setApplicationEventPublisher, setBeanClassLoader, setCustomImplementation, setEvaluationContextProvider, setLazyInit, setNamedQueries, setQueryLookupStrategyKey, setRepositoryBaseClass
-
Constructor Details
-
BlazePersistenceRepositoryFactoryBean
protected BlazePersistenceRepositoryFactoryBean()Creates a newBlazePersistenceRepositoryFactoryBean. -
BlazePersistenceRepositoryFactoryBean
Creates a newBlazePersistenceRepositoryFactoryBeanfor the given repository interface.- Parameters:
repositoryInterface- must not be null.
-
-
Method Details
-
isSingleton
public boolean isSingleton()- Specified by:
isSingletonin interfaceorg.springframework.beans.factory.FactoryBean<T extends org.springframework.data.repository.Repository<S,ID>> - Overrides:
isSingletonin classorg.springframework.data.repository.core.support.RepositoryFactoryBeanSupport<T extends org.springframework.data.repository.Repository<S,ID>, S, ID extends Serializable>
-
setEntityManager
public void setEntityManager(javax.persistence.EntityManager entityManager) TheEntityManagerto be used.- Parameters:
entityManager- the entityManager to set
-
setMappingContext
public void setMappingContext(org.springframework.data.mapping.context.MappingContext<?, ?> mappingContext) -
doCreateRepositoryFactory
-
createRepositoryFactory
protected BlazePersistenceRepositoryFactory createRepositoryFactory(javax.persistence.EntityManager entityManager) Returns aRepositoryFactorySupport.- Parameters:
entityManager-- Returns:
-
afterPropertiesSet
public void afterPropertiesSet()- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Overrides:
afterPropertiesSetin classorg.springframework.data.repository.core.support.RepositoryFactoryBeanSupport<T extends org.springframework.data.repository.Repository<S,ID>, S, ID extends Serializable>
-
setEscapeCharacter
public void setEscapeCharacter(char escapeCharacter) -
getEscapeCharacter
public char getEscapeCharacter()
-