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, hasVersionProperty
hasIdProperty, 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
doWithAssociations, doWithAssociations, doWithProperties, doWithProperties, findAnnotation, getIdentifierAccessor, getIdProperty, getName, getPersistenceConstructor, getPersistentProperty, getPersistentProperty, getPropertyAccessor, getType, getTypeAlias, getTypeInformation, getVersionProperty, hasIdProperty, hasVersionProperty, isConstructorArgument, isIdProperty, isVersionProperty
public 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 ApplicationContextAware
BeansException
public String getSolrCoreName()
SolrPersistentEntity
getSolrCoreName
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()
SolrPersistentEntity
SolrPersistentEntity
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()
SolrPersistentEntity
SolrPersistentEntity
. 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–2016 Pivotal Software, Inc.. All rights reserved.