Class SimpleElasticsearchPersistentProperty
java.lang.Object
org.springframework.data.mapping.model.AbstractPersistentProperty<P>
org.springframework.data.mapping.model.AnnotationBasedPersistentProperty<ElasticsearchPersistentProperty>
org.springframework.data.elasticsearch.core.mapping.SimpleElasticsearchPersistentProperty
- All Implemented Interfaces:
ElasticsearchPersistentProperty,PersistentProperty<ElasticsearchPersistentProperty>
public class SimpleElasticsearchPersistentProperty
extends AnnotationBasedPersistentProperty<ElasticsearchPersistentProperty>
implements ElasticsearchPersistentProperty
Elasticsearch specific
PersistentProperty implementation processing- Author:
- Rizwan Idrees, Mohsin Husen, Mark Paluch, Sascha Woo, Oliver Gierke, Peter-Josef Meisch, Roman Puchkovskiy
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.springframework.data.elasticsearch.core.mapping.ElasticsearchPersistentProperty
ElasticsearchPersistentProperty.PropertyToFieldNameConverter, ElasticsearchPersistentProperty.QueryPropertyToFieldNameConverter -
Constructor Summary
ConstructorsConstructorDescriptionSimpleElasticsearchPersistentProperty(Property property, PersistentEntity<?, ElasticsearchPersistentProperty> owner, SimpleTypeHolder simpleTypeHolder) -
Method Summary
Modifier and TypeMethodDescriptionprotected Association<ElasticsearchPersistentProperty>Returns the name to be used to store the property in the document.booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanReturns whether the current property is aSeqNoPrimaryTermproperty.booleanbooleanbooleanMethods inherited from class org.springframework.data.mapping.model.AnnotationBasedPersistentProperty
findAnnotation, findPropertyOrOwnerAnnotation, getAssociationTargetTypeInformation, getSpelExpression, isAnnotationPresent, isAssociation, isTransient, isVersionProperty, 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.elasticsearch.core.mapping.ElasticsearchPersistentProperty
getActualTypeOrNullMethods 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, usePropertyAccess
-
Constructor Details
-
SimpleElasticsearchPersistentProperty
public SimpleElasticsearchPersistentProperty(Property property, PersistentEntity<?, ElasticsearchPersistentProperty> owner, SimpleTypeHolder simpleTypeHolder)
-
-
Method Details
-
hasPropertyValueConverter
public boolean hasPropertyValueConverter()- Specified by:
hasPropertyValueConverterin interfaceElasticsearchPersistentProperty- Returns:
- true if an
PropertyValueConverteris available for this instance.
-
getPropertyValueConverter
- Specified by:
getPropertyValueConverterin interfaceElasticsearchPersistentProperty- Returns:
- the
PropertyValueConverterfor this instance.
-
isWritable
public boolean isWritable()- Specified by:
isWritablein interfacePersistentProperty<ElasticsearchPersistentProperty>- Overrides:
isWritablein classAnnotationBasedPersistentProperty<ElasticsearchPersistentProperty>
-
isReadable
public boolean isReadable()- Specified by:
isReadablein interfacePersistentProperty<ElasticsearchPersistentProperty>- Overrides:
isReadablein classAbstractPersistentProperty<ElasticsearchPersistentProperty>
-
storeNullValue
public boolean storeNullValue()- Specified by:
storeNullValuein interfaceElasticsearchPersistentProperty- Returns:
- true if null values should be stored in Elasticsearch
-
storeEmptyValue
public boolean storeEmptyValue()- Specified by:
storeEmptyValuein interfaceElasticsearchPersistentProperty- Returns:
- true if empty values ({
String}, or {Collection} or {Map}) should be store in Elasticsearch.
-
hasExplicitFieldName
public boolean hasExplicitFieldName()- Specified by:
hasExplicitFieldNamein interfaceElasticsearchPersistentProperty- Returns:
- true if the field name comes from an explicit value in the field annotation
-
getFieldName
Description copied from interface:ElasticsearchPersistentPropertyReturns the name to be used to store the property in the document.- Specified by:
getFieldNamein interfaceElasticsearchPersistentProperty- Returns:
-
isIdProperty
public boolean isIdProperty()- Specified by:
isIdPropertyin interfacePersistentProperty<ElasticsearchPersistentProperty>- Overrides:
isIdPropertyin classAnnotationBasedPersistentProperty<ElasticsearchPersistentProperty>
-
createAssociation
- Specified by:
createAssociationin classAbstractPersistentProperty<ElasticsearchPersistentProperty>
-
isSeqNoPrimaryTermProperty
public boolean isSeqNoPrimaryTermProperty()Description copied from interface:ElasticsearchPersistentPropertyReturns whether the current property is aSeqNoPrimaryTermproperty.- Specified by:
isSeqNoPrimaryTermPropertyin interfaceElasticsearchPersistentProperty- Returns:
- true if the type is
SeqNoPrimaryTerm
-
isGeoPointProperty
public boolean isGeoPointProperty()- Specified by:
isGeoPointPropertyin interfaceElasticsearchPersistentProperty- Returns:
- true if this is a GeoPoint property
-
isGeoShapeProperty
public boolean isGeoShapeProperty()- Specified by:
isGeoShapePropertyin interfaceElasticsearchPersistentProperty- Returns:
- true if this is a GeoShape property
-
isJoinFieldProperty
public boolean isJoinFieldProperty()- Specified by:
isJoinFieldPropertyin interfaceElasticsearchPersistentProperty- Returns:
- true if this is a JoinField property
-
isCompletionProperty
public boolean isCompletionProperty()- Specified by:
isCompletionPropertyin interfaceElasticsearchPersistentProperty- Returns:
- true if this is a Completion property
-
isIndexedIndexNameProperty
public boolean isIndexedIndexNameProperty()- Specified by:
isIndexedIndexNamePropertyin interfaceElasticsearchPersistentProperty- Returns:
- true if this is a property annotated with
IndexedIndexName.
-