Class BlazePersistenceRepositoryFactory
java.lang.Object
org.springframework.data.repository.core.support.RepositoryFactorySupport
org.springframework.data.jpa.repository.support.JpaRepositoryFactory
com.blazebit.persistence.spring.data.impl.repository.BlazePersistenceRepositoryFactory
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanClassLoaderAware,org.springframework.beans.factory.BeanFactoryAware
public class BlazePersistenceRepositoryFactory
extends org.springframework.data.jpa.repository.support.JpaRepositoryFactory
Partly copied from
JpaRepositoryFactory to retain functionality but mostly original.- Since:
- 1.2.0
- Author:
- Moritz Becker, Christian Beikov
-
Nested Class Summary
Nested classes/interfaces inherited from class org.springframework.data.repository.core.support.RepositoryFactorySupport
org.springframework.data.repository.core.support.RepositoryFactorySupport.QueryExecutorMethodInterceptor -
Constructor Summary
ConstructorsConstructorDescriptionBlazePersistenceRepositoryFactory(javax.persistence.EntityManager entityManager, com.blazebit.persistence.CriteriaBuilderFactory cbf, EntityViewManager evm) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddRepositoryProxyPostProcessor(org.springframework.data.repository.core.support.RepositoryProxyPostProcessor processor) protected EntityViewAwareCrudMethodMetadataprotected org.springframework.data.repository.query.QueryLookupStrategygetQueryLookupStrategy(org.springframework.data.repository.query.QueryLookupStrategy.Key key, org.springframework.data.repository.query.EvaluationContextProvider evaluationContextProvider) List<org.springframework.data.repository.query.QueryMethod><T> TgetRepository(Class<T> repositoryInterface, Object customImplementation) protected Class<?>getRepositoryBaseClass(org.springframework.data.repository.core.RepositoryMetadata metadata) protected org.springframework.data.repository.core.RepositoryInformationgetRepositoryInformation(org.springframework.data.repository.core.RepositoryMetadata metadata, Class<?> customImplementationClass) protected org.springframework.data.repository.core.RepositoryMetadatagetRepositoryMetadata(Class<?> repositoryInterface) protected ObjectgetTargetRepository(org.springframework.data.repository.core.RepositoryInformation information) protected voidvalidate(org.springframework.data.repository.core.RepositoryMetadata repositoryMetadata) Methods inherited from class org.springframework.data.jpa.repository.support.JpaRepositoryFactory
getEntityInformation, getProjectionFactory, getTargetRepository, setBeanClassLoader, setEscapeCharacterMethods inherited from class org.springframework.data.repository.core.support.RepositoryFactorySupport
addQueryCreationListener, getQueryLookupStrategy, getRepository, getTargetRepositoryViaReflection, setBeanFactory, setEvaluationContextProvider, setNamedQueries, setQueryLookupStrategyKey, setRepositoryBaseClass
-
Constructor Details
-
BlazePersistenceRepositoryFactory
public BlazePersistenceRepositoryFactory(javax.persistence.EntityManager entityManager, com.blazebit.persistence.CriteriaBuilderFactory cbf, EntityViewManager evm)
-
-
Method Details
-
addRepositoryProxyPostProcessor
public void addRepositoryProxyPostProcessor(org.springframework.data.repository.core.support.RepositoryProxyPostProcessor processor) - Overrides:
addRepositoryProxyPostProcessorin classorg.springframework.data.repository.core.support.RepositoryFactorySupport
-
getCrudMethodMetadata
-
getRepositoryMetadata
protected org.springframework.data.repository.core.RepositoryMetadata getRepositoryMetadata(Class<?> repositoryInterface) - Overrides:
getRepositoryMetadatain classorg.springframework.data.repository.core.support.RepositoryFactorySupport
-
getRepositoryInformation
protected org.springframework.data.repository.core.RepositoryInformation getRepositoryInformation(org.springframework.data.repository.core.RepositoryMetadata metadata, Class<?> customImplementationClass) - Overrides:
getRepositoryInformationin classorg.springframework.data.repository.core.support.RepositoryFactorySupport
-
validate
protected void validate(org.springframework.data.repository.core.RepositoryMetadata repositoryMetadata) - Overrides:
validatein classorg.springframework.data.repository.core.support.RepositoryFactorySupport
-
getTargetRepository
protected Object getTargetRepository(org.springframework.data.repository.core.RepositoryInformation information) - Overrides:
getTargetRepositoryin classorg.springframework.data.jpa.repository.support.JpaRepositoryFactory
-
getRepositoryBaseClass
protected Class<?> getRepositoryBaseClass(org.springframework.data.repository.core.RepositoryMetadata metadata) - Overrides:
getRepositoryBaseClassin classorg.springframework.data.jpa.repository.support.JpaRepositoryFactory
-
getRepository
- Overrides:
getRepositoryin classorg.springframework.data.repository.core.support.RepositoryFactorySupport
-
getQueryLookupStrategy
protected org.springframework.data.repository.query.QueryLookupStrategy getQueryLookupStrategy(org.springframework.data.repository.query.QueryLookupStrategy.Key key, org.springframework.data.repository.query.EvaluationContextProvider evaluationContextProvider) - Overrides:
getQueryLookupStrategyin classorg.springframework.data.jpa.repository.support.JpaRepositoryFactory
-
getQueryMethods
- Overrides:
getQueryMethodsin classorg.springframework.data.repository.core.support.RepositoryFactorySupport
-