Class DatastoreRepositoryFactory
java.lang.Object
org.springframework.data.repository.core.support.RepositoryFactorySupport
com.google.cloud.spring.data.datastore.repository.support.DatastoreRepositoryFactory
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.beans.factory.BeanClassLoaderAware
,org.springframework.beans.factory.BeanFactoryAware
,org.springframework.context.ApplicationContextAware
public class DatastoreRepositoryFactory
extends org.springframework.data.repository.core.support.RepositoryFactorySupport
implements org.springframework.context.ApplicationContextAware
Repository factory for Datastore.
- Since:
- 1.1
-
Method Summary
Modifier and TypeMethodDescription<T,
I> org.springframework.data.repository.core.EntityInformation<T, I> getEntityInformation
(Class<T> domainClass) protected Optional<org.springframework.data.repository.query.QueryLookupStrategy>
getQueryLookupStrategy
(org.springframework.data.repository.query.QueryLookupStrategy.Key key, org.springframework.data.repository.query.QueryMethodEvaluationContextProvider evaluationContextProvider) protected Class<?>
getRepositoryBaseClass
(org.springframework.data.repository.core.RepositoryMetadata metadata) protected Object
getTargetRepository
(org.springframework.data.repository.core.RepositoryInformation metadata) void
setApplicationContext
(org.springframework.context.ApplicationContext applicationContext) Methods inherited from class org.springframework.data.repository.core.support.RepositoryFactorySupport
addInvocationListener, addQueryCreationListener, addRepositoryProxyPostProcessor, getProjectionFactory, getProjectionFactory, getQueryMethods, getRepository, getRepository, getRepository, getRepositoryFragments, getRepositoryInformation, getRepositoryMetadata, getTargetRepositoryViaReflection, getTargetRepositoryViaReflection, instantiateClass, setBeanClassLoader, setBeanFactory, setEvaluationContextProvider, setNamedQueries, setQueryLookupStrategyKey, setRepositoryBaseClass, validate
-
Method Details
-
getEntityInformation
public <T,I> org.springframework.data.repository.core.EntityInformation<T,I> getEntityInformation(Class<T> domainClass) - Specified by:
getEntityInformation
in classorg.springframework.data.repository.core.support.RepositoryFactorySupport
-
getTargetRepository
protected Object getTargetRepository(org.springframework.data.repository.core.RepositoryInformation metadata) - Specified by:
getTargetRepository
in classorg.springframework.data.repository.core.support.RepositoryFactorySupport
-
getRepositoryBaseClass
protected Class<?> getRepositoryBaseClass(org.springframework.data.repository.core.RepositoryMetadata metadata) - Specified by:
getRepositoryBaseClass
in classorg.springframework.data.repository.core.support.RepositoryFactorySupport
-
getQueryLookupStrategy
protected Optional<org.springframework.data.repository.query.QueryLookupStrategy> getQueryLookupStrategy(@Nullable org.springframework.data.repository.query.QueryLookupStrategy.Key key, org.springframework.data.repository.query.QueryMethodEvaluationContextProvider evaluationContextProvider) - Overrides:
getQueryLookupStrategy
in classorg.springframework.data.repository.core.support.RepositoryFactorySupport
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException - Specified by:
setApplicationContext
in interfaceorg.springframework.context.ApplicationContextAware
- Throws:
org.springframework.beans.BeansException
-