Class SimpleSolrPersistentEntity<T>
java.lang.Object
org.springframework.data.mapping.model.BasicPersistentEntity<T,SolrPersistentProperty>
org.springframework.data.solr.core.mapping.SimpleSolrPersistentEntity<T>
- Type Parameters:
T-
- All Implemented Interfaces:
Iterable<SolrPersistentProperty>,org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware,org.springframework.data.mapping.model.MutablePersistentEntity<T,,SolrPersistentProperty> org.springframework.data.mapping.PersistentEntity<T,,SolrPersistentProperty> SolrPersistentEntity<T>
public class SimpleSolrPersistentEntity<T>
extends org.springframework.data.mapping.model.BasicPersistentEntity<T,SolrPersistentProperty>
implements SolrPersistentEntity<T>, org.springframework.context.ApplicationContextAware
Solr specific
PersistentEntity implementation holding eg. name of solr core.-
Constructor Summary
ConstructorsConstructorDescriptionSimpleSolrPersistentEntity(org.springframework.data.util.TypeInformation<T> typeInformation) -
Method Summary
Modifier and TypeMethodDescriptionGet the core's name for this entity.Returns the score property of theSolrPersistentEntity.booleanReturns whether theSolrPersistentEntityhas an score property.voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext) voidverify()Methods inherited from class org.springframework.data.mapping.model.BasicPersistentEntity
addAssociation, addPersistentProperty, doWithAssociations, doWithAssociations, doWithProperties, doWithProperties, findAnnotation, getEvaluationContext, getEvaluationContext, getFallbackIsNewStrategy, getIdentifierAccessor, getIdProperty, getInstanceCreatorMetadata, getName, getPersistenceConstructor, getPersistentProperties, getPersistentProperty, getPropertyAccessor, getPropertyPathAccessor, getType, getTypeAlias, getTypeInformation, getVersionProperty, hasIdProperty, hasVersionProperty, isAnnotationPresent, isCreatorArgument, isIdProperty, isImmutable, isNew, isVersionProperty, iterator, requiresPropertyPopulation, returnPropertyIfBetterIdPropertyCandidateOrNull, setEvaluationContextProvider, setPersistentPropertyAccessorFactoryMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, iterator, spliteratorMethods inherited from interface org.springframework.data.mapping.PersistentEntity
doWithAll, doWithAssociations, doWithAssociations, doWithProperties, doWithProperties, findAnnotation, getIdentifierAccessor, getIdProperty, getInstanceCreatorMetadata, getName, getPersistenceConstructor, getPersistentProperties, getPersistentProperty, getPropertyAccessor, getPropertyPathAccessor, getRequiredAnnotation, getRequiredIdProperty, getRequiredPersistentProperty, getRequiredVersionProperty, getType, getTypeAlias, getTypeInformation, getVersionProperty, hasIdProperty, hasVersionProperty, isAnnotationPresent, isConstructorArgument, isCreatorArgument, isIdProperty, isImmutable, isNew, isVersionProperty, requiresPropertyPopulationMethods inherited from interface org.springframework.data.solr.core.mapping.SolrPersistentEntity
getPersistentProperty
-
Constructor Details
-
SimpleSolrPersistentEntity
-
-
Method Details
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException - Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware- Throws:
org.springframework.beans.BeansException
-
getCollectionName
Description copied from interface:SolrPersistentEntityGet the core's name for this entity.- Specified by:
getCollectionNamein interfaceSolrPersistentEntity<T>- Returns:
-
hasScoreProperty
public boolean hasScoreProperty()Description copied from interface:SolrPersistentEntityReturns whether theSolrPersistentEntityhas an score property. If this call returns true,SolrPersistentEntity.getScoreProperty()will return a non-null value.- Specified by:
hasScorePropertyin interfaceSolrPersistentEntity<T>- Returns:
- false when
SolrPersistentEntitydoes not define a score property.
-
getScoreProperty
Description copied from interface:SolrPersistentEntityReturns the score property of theSolrPersistentEntity. Can be null in case no score property is available on the entity.- Specified by:
getScorePropertyin interfaceSolrPersistentEntity<T>- Returns:
- the score
SolrPersistentPropertyof thePersistentEntityor null if not defined.
-
verify
public void verify()- Specified by:
verifyin interfaceorg.springframework.data.mapping.model.MutablePersistentEntity<T,SolrPersistentProperty> - Overrides:
verifyin classorg.springframework.data.mapping.model.BasicPersistentEntity<T,SolrPersistentProperty>
-