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 newCassandraRepositoryFactorywith the givenCassandraOperations. -
Method Summary
Modifier and TypeMethodDescription<T,ID> CassandraEntityInformation<T, ID> getEntityInformation(Class<T> domainClass) protected ProjectionFactorygetProjectionFactory(ClassLoader classLoader, BeanFactory beanFactory) protected Optional<QueryLookupStrategy>getQueryLookupStrategy(QueryLookupStrategy.Key key, QueryMethodEvaluationContextProvider evaluationContextProvider) protected Class<?>getRepositoryBaseClass(RepositoryMetadata metadata) protected ObjectgetTargetRepository(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 newCassandraRepositoryFactorywith the givenCassandraOperations.- Parameters:
operations- must not be null
-
-
Method Details
-
getProjectionFactory
- Overrides:
getProjectionFactoryin classRepositoryFactorySupport
-
getRepositoryBaseClass
- Specified by:
getRepositoryBaseClassin classRepositoryFactorySupport
-
getTargetRepository
- Specified by:
getTargetRepositoryin classRepositoryFactorySupport
-
getEntityInformation
- Specified by:
getEntityInformationin classRepositoryFactorySupport
-
getQueryLookupStrategy
protected Optional<QueryLookupStrategy> getQueryLookupStrategy(@Nullable QueryLookupStrategy.Key key, QueryMethodEvaluationContextProvider evaluationContextProvider) - Overrides:
getQueryLookupStrategyin classRepositoryFactorySupport
-