Interface SolrPersistentEntity<T>
- Type Parameters:
T-
- All Superinterfaces:
Iterable<SolrPersistentProperty>,org.springframework.data.mapping.PersistentEntity<T,SolrPersistentProperty>
- All Known Implementing Classes:
SimpleSolrPersistentEntity
public interface SolrPersistentEntity<T>
extends org.springframework.data.mapping.PersistentEntity<T,SolrPersistentProperty>
-
Method Summary
Modifier and TypeMethodDescriptionGet the core's name for this entity.getPersistentProperty(String name) Returns the score property of theSolrPersistentEntity.booleanReturns whether theSolrPersistentEntityhas an score property.Methods 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, requiresPropertyPopulation
-
Method Details
-
getCollectionName
String getCollectionName()Get the core's name for this entity.- Returns:
-
hasScoreProperty
boolean hasScoreProperty()Returns whether theSolrPersistentEntityhas an score property. If this call returns true,getScoreProperty()will return a non-null value.- Returns:
- false when
SolrPersistentEntitydoes not define a score property. - Since:
- 1.4
-
getScoreProperty
Returns the score property of theSolrPersistentEntity. Can be null in case no score property is available on the entity.- Returns:
- the score
SolrPersistentPropertyof thePersistentEntityor null if not defined. - Since:
- 1.4
-
getPersistentProperty
- Specified by:
getPersistentPropertyin interfaceorg.springframework.data.mapping.PersistentEntity<T,SolrPersistentProperty>
-