Class SimpleSolrPersistentProperty
java.lang.Object
org.springframework.data.mapping.model.AbstractPersistentProperty<P>
org.springframework.data.mapping.model.AnnotationBasedPersistentProperty<SolrPersistentProperty>
org.springframework.data.solr.core.mapping.SimpleSolrPersistentProperty
- All Implemented Interfaces:
org.springframework.data.mapping.PersistentProperty<SolrPersistentProperty>,SolrPersistentProperty
public class SimpleSolrPersistentProperty
extends org.springframework.data.mapping.model.AnnotationBasedPersistentProperty<SolrPersistentProperty>
implements SolrPersistentProperty
Solr specific
PersistentProperty implementation processing taking
Field into account-
Nested Class Summary
Nested classes/interfaces inherited from interface org.springframework.data.solr.core.mapping.SolrPersistentProperty
SolrPersistentProperty.PropertyToFieldNameConverter -
Constructor Summary
ConstructorsConstructorDescriptionSimpleSolrPersistentProperty(org.springframework.data.mapping.model.Property property, org.springframework.data.mapping.PersistentEntity<?, SolrPersistentProperty> owner, org.springframework.data.mapping.model.SimpleTypeHolder simpleTypeHolder) -
Method Summary
Modifier and TypeMethodDescriptionbooleanprotected org.springframework.data.mapping.Association<SolrPersistentProperty>Get name of field under attention toFieldannotationbooleanbooleanReturns whether the property should be handled as dynamic property.booleanbooleanbooleanbooleanbooleanReturns whether the property is a potential score property of the owningPersistentEntity.booleanbooleanisStored()booleanisUnique()Methods inherited from class org.springframework.data.mapping.model.AnnotationBasedPersistentProperty
findAnnotation, findPropertyOrOwnerAnnotation, getAssociationTargetTypeInformation, getSpelExpression, isAnnotationPresent, isAssociation, isTransient, isVersionProperty, isWritable, toString, usePropertyAccessMethods inherited from class org.springframework.data.mapping.model.AbstractPersistentProperty
equals, getActualType, getActualTypeInformation, getAssociation, getAssociationTargetType, getComponentType, getField, getGetter, getMapValueType, getName, getOwner, getPersistentEntityTypeInformation, getProperty, getRawType, getSetter, getType, getTypeInformation, getWither, hashCode, isArray, isCollectionLike, isEntity, isImmutable, isMapMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.springframework.data.mapping.PersistentProperty
findAnnotation, findPropertyOrOwnerAnnotation, getAccessorForOwner, getActualType, getAssociation, getAssociationTargetType, getAssociationTargetTypeInformation, getComponentType, getField, getGetter, getMapValueType, getName, getOwner, getPersistentEntityTypeInformation, getRawType, getRequiredAnnotation, getRequiredAssociation, getRequiredField, getRequiredGetter, getRequiredSetter, getRequiredWither, getSetter, getSpelExpression, getType, getTypeInformation, getWither, hasActualTypeAnnotation, isAnnotationPresent, isArray, isAssociation, isCollectionLike, isEntity, isImmutable, isMap, isTransient, isVersionProperty, isWritable, usePropertyAccess
-
Constructor Details
-
SimpleSolrPersistentProperty
public SimpleSolrPersistentProperty(org.springframework.data.mapping.model.Property property, org.springframework.data.mapping.PersistentEntity<?, SolrPersistentProperty> owner, org.springframework.data.mapping.model.SimpleTypeHolder simpleTypeHolder)
-
-
Method Details
-
getFieldName
Description copied from interface:SolrPersistentPropertyGet name of field under attention toFieldannotation- Specified by:
getFieldNamein interfaceSolrPersistentProperty- Returns:
-
isReadonly
public boolean isReadonly()- Specified by:
isReadonlyin interfaceSolrPersistentProperty- Returns:
- true if
Fieldis present and not markedIndexed.readonly()=true
-
isIdProperty
public boolean isIdProperty()- Specified by:
isIdPropertyin interfaceorg.springframework.data.mapping.PersistentProperty<SolrPersistentProperty>- Overrides:
isIdPropertyin classorg.springframework.data.mapping.model.AnnotationBasedPersistentProperty<SolrPersistentProperty>
-
createAssociation
- Specified by:
createAssociationin classorg.springframework.data.mapping.model.AbstractPersistentProperty<SolrPersistentProperty>
-
containsWildcard
public boolean containsWildcard()- Specified by:
containsWildcardin interfaceSolrPersistentProperty- Returns:
- true if
Field.value()contains*
-
isSearchable
public boolean isSearchable()- Specified by:
isSearchablein interfaceSolrPersistentProperty- Returns:
- true if property shall be indexed in solr.
-
isStored
public boolean isStored()- Specified by:
isStoredin interfaceSolrPersistentProperty- Returns:
- true if property shall be stored and returned in result documents.
-
isMultiValued
public boolean isMultiValued()- Specified by:
isMultiValuedin interfaceSolrPersistentProperty- Returns:
- true if property is collection like
- See Also:
-
PersistentProperty.isCollectionLike()
-
getSolrTypeName
- Specified by:
getSolrTypeNamein interfaceSolrPersistentProperty- Returns:
- mapped solr type name
-
getDefaultValue
- Specified by:
getDefaultValuein interfaceSolrPersistentProperty
-
getCopyFields
- Specified by:
getCopyFieldsin interfaceSolrPersistentProperty- Returns:
- list of fields the current fields value shall be copied to
-
isUnique
public boolean isUnique()- Specified by:
isUniquein interfaceSolrPersistentProperty- Returns:
-
isRequired
public boolean isRequired()- Specified by:
isRequiredin interfaceSolrPersistentProperty- Returns:
-
isScoreProperty
public boolean isScoreProperty()Description copied from interface:SolrPersistentPropertyReturns whether the property is a potential score property of the owningPersistentEntity. This method is mainly used byPersistentEntityimplementation to discover score property candidates onPersistentEntitycreation you should rather call to determine whether the current property is the score property of thatPersistentEntityunder consideration.- Specified by:
isScorePropertyin interfaceSolrPersistentProperty- Returns:
-
isDynamicProperty
public boolean isDynamicProperty()Description copied from interface:SolrPersistentPropertyReturns whether the property should be handled as dynamic property.- Specified by:
isDynamicPropertyin interfaceSolrPersistentProperty- Returns:
- See Also:
-
isChildProperty
public boolean isChildProperty()- Specified by:
isChildPropertyin interfaceSolrPersistentProperty- Returns:
- true if property has set annotation
Field.child()to true or is annotated withChildDocument.
-