Module spring.data.cassandra
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,EnvironmentAware,EnvironmentCapable
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, ValueExpressionDelegate valueExpressionDelegate) protected Class<?>getRepositoryBaseClass(RepositoryMetadata metadata) protected ObjectgetTargetRepository(RepositoryInformation information) Methods inherited from class org.springframework.data.repository.core.support.RepositoryFactorySupport
addInvocationListener, addQueryCreationListener, addRepositoryProxyPostProcessor, getEnvironment, getProjectionFactory, getQueryLookupStrategy, getQueryMethods, getRepository, getRepository, getRepository, getRepositoryFragments, getRepositoryInformation, getRepositoryMetadata, getTargetRepositoryViaReflection, getTargetRepositoryViaReflection, instantiateClass, setBeanClassLoader, setBeanFactory, setEnvironment, setEvaluationContextProvider, setEvaluationContextProvider, setExposeMetadata, 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(QueryLookupStrategy.Key key, ValueExpressionDelegate valueExpressionDelegate) - Overrides:
getQueryLookupStrategyin classRepositoryFactorySupport
-