Spring Data Solr

org.springframework.data.solr.repository.support
Class SolrRepositoryFactory

java.lang.Object
  extended by org.springframework.data.repository.core.support.RepositoryFactorySupport
      extended by org.springframework.data.solr.repository.support.SolrRepositoryFactory
All Implemented Interfaces:
Aware, BeanClassLoaderAware

public class SolrRepositoryFactory
extends RepositoryFactorySupport

Factory to create SolrRepository

Author:
Christoph Strobl

Nested Class Summary
 
Nested classes/interfaces inherited from class org.springframework.data.repository.core.support.RepositoryFactorySupport
RepositoryFactorySupport.QueryExecutorMethodInterceptor
 
Constructor Summary
SolrRepositoryFactory(SolrOperations solrOperations)
           
SolrRepositoryFactory(org.apache.solr.client.solrj.SolrServer solrServer)
           
 
Method Summary
<T,ID extends Serializable>
SolrEntityInformation<T,ID>
getEntityInformation(Class<T> domainClass)
           
protected  QueryLookupStrategy getQueryLookupStrategy(QueryLookupStrategy.Key key)
           
protected  Class<?> getRepositoryBaseClass(RepositoryMetadata metadata)
           
protected  Object getTargetRepository(RepositoryMetadata metadata)
           
 
Methods inherited from class org.springframework.data.repository.core.support.RepositoryFactorySupport
addQueryCreationListener, addRepositoryProxyPostProcessor, getQueryMethods, getRepository, getRepository, getRepositoryInformation, setBeanClassLoader, setNamedQueries, setQueryLookupStrategyKey, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SolrRepositoryFactory

public SolrRepositoryFactory(SolrOperations solrOperations)

SolrRepositoryFactory

public SolrRepositoryFactory(org.apache.solr.client.solrj.SolrServer solrServer)
Method Detail

getEntityInformation

public <T,ID extends Serializable> SolrEntityInformation<T,ID> getEntityInformation(Class<T> domainClass)
Specified by:
getEntityInformation in class RepositoryFactorySupport

getTargetRepository

protected Object getTargetRepository(RepositoryMetadata metadata)
Specified by:
getTargetRepository in class RepositoryFactorySupport

getRepositoryBaseClass

protected Class<?> getRepositoryBaseClass(RepositoryMetadata metadata)
Specified by:
getRepositoryBaseClass in class RepositoryFactorySupport

getQueryLookupStrategy

protected QueryLookupStrategy getQueryLookupStrategy(QueryLookupStrategy.Key key)
Overrides:
getQueryLookupStrategy in class RepositoryFactorySupport

Spring Data Solr

Copyright © 2011-2014-2014 Pivotal. All Rights Reserved.