Class SolrRepositoryFactory
java.lang.Object
org.springframework.data.repository.core.support.RepositoryFactorySupport
org.springframework.data.solr.repository.support.SolrRepositoryFactory
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanClassLoaderAware,org.springframework.beans.factory.BeanFactoryAware
public class SolrRepositoryFactory
extends org.springframework.data.repository.core.support.RepositoryFactorySupport
Factory to create
SolrRepository-
Constructor Summary
ConstructorsConstructorDescriptionSolrRepositoryFactory(org.apache.solr.client.solrj.SolrClient solrClient) SolrRepositoryFactory(org.apache.solr.client.solrj.SolrClient solrClient, SolrConverter converter) SolrRepositoryFactory(SolrOperations solrOperations) -
Method Summary
Modifier and TypeMethodDescription<T,ID> SolrEntityInformation<T, ID> 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 ObjectgetTargetRepository(org.springframework.data.repository.core.RepositoryInformation metadata) booleanvoidsetSchemaCreationSupport(boolean schemaCreationSupport) 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
-
Constructor Details
-
SolrRepositoryFactory
-
SolrRepositoryFactory
public SolrRepositoryFactory(org.apache.solr.client.solrj.SolrClient solrClient) -
SolrRepositoryFactory
public SolrRepositoryFactory(org.apache.solr.client.solrj.SolrClient solrClient, SolrConverter converter)
-
-
Method Details
-
getEntityInformation
- Specified by:
getEntityInformationin classorg.springframework.data.repository.core.support.RepositoryFactorySupport
-
getTargetRepository
protected Object getTargetRepository(org.springframework.data.repository.core.RepositoryInformation metadata) - Specified by:
getTargetRepositoryin classorg.springframework.data.repository.core.support.RepositoryFactorySupport
-
getRepositoryBaseClass
protected Class<?> getRepositoryBaseClass(org.springframework.data.repository.core.RepositoryMetadata metadata) - Specified by:
getRepositoryBaseClassin 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:
getQueryLookupStrategyin classorg.springframework.data.repository.core.support.RepositoryFactorySupport
-
isSchemaCreationSupport
public boolean isSchemaCreationSupport()- Returns:
- Since:
- 1.3
-
setSchemaCreationSupport
public void setSchemaCreationSupport(boolean schemaCreationSupport) - Parameters:
schemaCreationSupport-- Since:
- 1.3
-