Spring Data Solr

org.springframework.data.solr.core.mapping
Class SimpleSolrPersistentEntity<T>

java.lang.Object
  extended by org.springframework.data.mapping.model.BasicPersistentEntity<T,SolrPersistentProperty>
      extended by org.springframework.data.solr.core.mapping.SimpleSolrPersistentEntity<T>
Type Parameters:
T -
All Implemented Interfaces:
Aware, ApplicationContextAware, MutablePersistentEntity<T,SolrPersistentProperty>, PersistentEntity<T,SolrPersistentProperty>, SolrPersistentEntity<T>

public class SimpleSolrPersistentEntity<T>
extends BasicPersistentEntity<T,SolrPersistentProperty>
implements SolrPersistentEntity<T>, ApplicationContextAware

Solr specific PersistentEntity implementation holding eg. name of solr core

Author:
Christoph Strobl

Constructor Summary
SimpleSolrPersistentEntity(TypeInformation<T> typeInformation)
           
 
Method Summary
 String getSolrCoreName()
           
 void setApplicationContext(ApplicationContext applicationContext)
           
 
Methods inherited from class org.springframework.data.mapping.model.BasicPersistentEntity
addAssociation, addPersistentProperty, doWithAssociations, doWithAssociations, doWithProperties, doWithProperties, getIdProperty, getName, getPersistenceConstructor, getPersistentProperty, getType, getTypeAlias, getTypeInformation, getVersionProperty, hasIdProperty, hasVersionProperty, isConstructorArgument, isIdProperty, isVersionProperty, returnPropertyIfBetterIdPropertyCandidateOrNull, verify
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.springframework.data.mapping.PersistentEntity
doWithAssociations, doWithAssociations, doWithProperties, doWithProperties, getIdProperty, getName, getPersistenceConstructor, getPersistentProperty, getType, getTypeAlias, getTypeInformation, getVersionProperty, hasIdProperty, hasVersionProperty, isConstructorArgument, isIdProperty, isVersionProperty
 

Constructor Detail

SimpleSolrPersistentEntity

public SimpleSolrPersistentEntity(TypeInformation<T> typeInformation)
Method Detail

setApplicationContext

public void setApplicationContext(ApplicationContext applicationContext)
                           throws BeansException
Specified by:
setApplicationContext in interface ApplicationContextAware
Throws:
BeansException

getSolrCoreName

public String getSolrCoreName()
Specified by:
getSolrCoreName in interface SolrPersistentEntity<T>

Spring Data Solr

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