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() |
String |
getCollectionName()
Get the core's name for this entity.
|
SolrPersistentProperty |
getScoreProperty()
Returns the score property of the
SolrPersistentEntity . |
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, getPersistentProperties, getPersistentProperty, getPropertyAccessor, getType, getTypeAlias, getTypeInformation, getVersionProperty, hasIdProperty, hasVersionProperty, isAnnotationPresent, isConstructorArgument, isIdProperty, isVersionProperty, iterator, returnPropertyIfBetterIdPropertyCandidateOrNull, setPersistentPropertyAccessorFactory
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
doWithAssociations, doWithAssociations, doWithProperties, doWithProperties, findAnnotation, getIdentifierAccessor, getIdProperty, getName, getPersistenceConstructor, getPersistentProperties, getPersistentProperty, getPersistentProperty, getPropertyAccessor, getRequiredIdProperty, getRequiredPersistentProperty, getRequiredVersionProperty, getType, getTypeAlias, getTypeInformation, getVersionProperty, hasIdProperty, hasVersionProperty, isAnnotationPresent, isConstructorArgument, isIdProperty, isVersionProperty
forEach, iterator, spliterator
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 getCollectionName()
SolrPersistentEntity
getCollectionName
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–2017 Pivotal Software, Inc.. All rights reserved.