T - public class SimpleSolrPersistentEntity<T> extends BasicPersistentEntity<T,SolrPersistentProperty> implements SolrPersistentEntity<T>, ApplicationContextAware
PersistentEntity implementation holding eg. name of solr core.| Type | Property and Description |
|---|---|
boolean |
hasScore
Returns whether the
SolrPersistentEntity has an score property. |
hasIdProperty, hasVersionPropertyhasIdProperty, hasVersionProperty| Constructor and Description |
|---|
SimpleSolrPersistentEntity(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(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(TypeInformation<T> typeInformation)
public void setApplicationContext(ApplicationContext applicationContext) throws BeansException
setApplicationContext in interface ApplicationContextAwareBeansExceptionpublic 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 MutablePersistentEntity<T,SolrPersistentProperty>verify in class BasicPersistentEntity<T,SolrPersistentProperty>Copyright © 2011-2015–2017 Pivotal Software, Inc.. All rights reserved.