Class CassandraRepositoryFactory
java.lang.Object
org.springframework.data.repository.core.support.RepositoryFactorySupport
org.springframework.data.cassandra.repository.support.CassandraRepositoryFactory
- All Implemented Interfaces:
Aware
,BeanClassLoaderAware
,BeanFactoryAware
Factory to create
CassandraRepository
instances.- Author:
- Alex Shvid, Matthew T. Adams, Thomas Darimont, Mark Paluch, John Blum
-
Constructor Summary
ConstructorsConstructorDescriptionCassandraRepositoryFactory
(CassandraOperations operations) Create a newCassandraRepositoryFactory
with the givenCassandraOperations
. -
Method Summary
Modifier and TypeMethodDescription<T,
ID> CassandraEntityInformation<T, ID> getEntityInformation
(Class<T> domainClass) protected ProjectionFactory
getProjectionFactory
(ClassLoader classLoader, BeanFactory beanFactory) protected Optional<QueryLookupStrategy>
getQueryLookupStrategy
(QueryLookupStrategy.Key key, QueryMethodEvaluationContextProvider evaluationContextProvider) protected Class<?>
getRepositoryBaseClass
(RepositoryMetadata metadata) protected Object
getTargetRepository
(RepositoryInformation information) Methods inherited from class org.springframework.data.repository.core.support.RepositoryFactorySupport
addInvocationListener, addQueryCreationListener, addRepositoryProxyPostProcessor, getProjectionFactory, getQueryMethods, getRepository, getRepository, getRepository, getRepositoryFragments, getRepositoryInformation, getRepositoryMetadata, getTargetRepositoryViaReflection, getTargetRepositoryViaReflection, instantiateClass, setBeanClassLoader, setBeanFactory, setEvaluationContextProvider, setNamedQueries, setQueryLookupStrategyKey, setRepositoryBaseClass, validate
-
Constructor Details
-
CassandraRepositoryFactory
Create a newCassandraRepositoryFactory
with the givenCassandraOperations
.- Parameters:
operations
- must not be null
-
-
Method Details
-
getProjectionFactory
- Overrides:
getProjectionFactory
in classRepositoryFactorySupport
-
getRepositoryBaseClass
- Specified by:
getRepositoryBaseClass
in classRepositoryFactorySupport
-
getTargetRepository
- Specified by:
getTargetRepository
in classRepositoryFactorySupport
-
getEntityInformation
- Specified by:
getEntityInformation
in classRepositoryFactorySupport
-
getQueryLookupStrategy
protected Optional<QueryLookupStrategy> getQueryLookupStrategy(@Nullable QueryLookupStrategy.Key key, QueryMethodEvaluationContextProvider evaluationContextProvider) - Overrides:
getQueryLookupStrategy
in classRepositoryFactorySupport
-