T - public class SimpleSolrPersistentEntity<T> extends org.springframework.data.mapping.model.BasicPersistentEntity<T,SolrPersistentProperty> implements SolrPersistentEntity<T>, org.springframework.context.ApplicationContextAware
PersistentEntity implementation holding eg. name of solr core.| Type | Property and Description |
|---|---|
boolean |
hasScore
Returns whether the
SolrPersistentEntity has an score property. |
| Constructor and Description |
|---|
SimpleSolrPersistentEntity(org.springframework.data.util.TypeInformation<T> typeInformation) |
| Modifier and Type | Method and Description |
|---|---|
Float |
getBoost() |
SolrPersistentProperty |
getScoreProperty()
Returns the score property of the
SolrPersistentEntity. |
String |
getSolrCoreName()
Get the core's name for this entity.
|
boolean |
hasScoreProperty()
Returns whether the
SolrPersistentEntity has an score property. |
boolean |
isBoosted() |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void |
verify() |
addAssociation, addPersistentProperty, doWithAssociations, doWithAssociations, doWithProperties, doWithProperties, findAnnotation, getIdentifierAccessor, getIdProperty, getName, getPersistenceConstructor, getPersistentProperty, getPersistentProperty, getPropertyAccessor, getType, getTypeAlias, getTypeInformation, getVersionProperty, hasIdProperty, hasVersionProperty, isConstructorArgument, isIdProperty, isVersionProperty, returnPropertyIfBetterIdPropertyCandidateOrNull, setPersistentPropertyAccessorFactoryclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdoWithAssociations, doWithAssociations, doWithProperties, doWithProperties, findAnnotation, getIdentifierAccessor, getIdProperty, getName, getPersistenceConstructor, getPersistentProperty, getPersistentProperty, getPropertyAccessor, getType, getTypeAlias, getTypeInformation, getVersionProperty, hasIdProperty, hasVersionProperty, isConstructorArgument, isIdProperty, isVersionPropertypublic boolean hasScoreProperty
hasScoreProperty in interface SolrPersistentEntity<T>SolrPersistentEntity does not define a score property.public SimpleSolrPersistentEntity(org.springframework.data.util.TypeInformation<T> typeInformation)
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionpublic String getSolrCoreName()
SolrPersistentEntitygetSolrCoreName in interface SolrPersistentEntity<T>public boolean isBoosted()
isBoosted in interface SolrPersistentEntity<T>public Float getBoost()
getBoost in interface SolrPersistentEntity<T>SolrPersistentEntity.isBoosted(), null otherwisepublic boolean hasScoreProperty()
SolrPersistentEntitySolrPersistentEntity has an score property. If this call returns true,
SolrPersistentEntity.getScoreProperty() will return a non-null value.hasScoreProperty in interface SolrPersistentEntity<T>SolrPersistentEntity does not define a score property.public SolrPersistentProperty getScoreProperty()
SolrPersistentEntitySolrPersistentEntity. Can be null in case no score property is
available on the entity.getScoreProperty in interface SolrPersistentEntity<T>SolrPersistentProperty of the PersistentEntity or null if not defined.public void verify()
verify in interface org.springframework.data.mapping.model.MutablePersistentEntity<T,SolrPersistentProperty>verify in class org.springframework.data.mapping.model.BasicPersistentEntity<T,SolrPersistentProperty>Copyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.