public class SimpleElasticsearchPersistentProperty extends AnnotationBasedPersistentProperty<ElasticsearchPersistentProperty> implements ElasticsearchPersistentProperty
PersistentProperty implementation processingElasticsearchPersistentProperty.PropertyToFieldNameConverter, ElasticsearchPersistentProperty.QueryPropertyToFieldNameConverter| Constructor and Description |
|---|
SimpleElasticsearchPersistentProperty(Property property,
PersistentEntity<?,ElasticsearchPersistentProperty> owner,
SimpleTypeHolder simpleTypeHolder,
FieldNamingStrategy fieldNamingStrategy) |
| Modifier and Type | Method and Description |
|---|---|
protected Association<ElasticsearchPersistentProperty> |
createAssociation() |
String |
getFieldName()
Returns the name to be used to store the property in the document.
|
ElasticsearchPersistentPropertyConverter |
getPropertyConverter() |
protected boolean |
hasExplicitFieldName() |
boolean |
hasPropertyConverter() |
boolean |
isCompletionProperty() |
boolean |
isGeoPointProperty() |
boolean |
isGeoShapeProperty() |
boolean |
isIdProperty() |
boolean |
isImmutable() |
boolean |
isJoinFieldProperty() |
boolean |
isParentProperty()
Returns whether the current property is a potential parent property of the owning
ElasticsearchPersistentEntity. |
boolean |
isReadable()
Returns true if the property may be read.
|
boolean |
isSeqNoPrimaryTermProperty()
Returns whether the current property is a
SeqNoPrimaryTerm property. |
boolean |
isWritable() |
boolean |
storeNullValue() |
findAnnotation, findPropertyOrOwnerAnnotation, getAssociationTargetType, getSpelExpression, isAnnotationPresent, isAssociation, isTransient, isVersionProperty, toString, usePropertyAccessequals, getActualType, getAssociation, getComponentType, getField, getGetter, getMapValueType, getName, getOwner, getPersistentEntityTypes, getProperty, getRawType, getSetter, getType, getTypeInformation, getWither, hashCode, isArray, isCollectionLike, isEntity, isMapclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetActualTypeOrNullfindAnnotation, findPropertyOrOwnerAnnotation, getAccessorForOwner, getActualType, getAssociation, getAssociationTargetType, getComponentType, getField, getGetter, getMapValueType, getName, getOwner, getPersistentEntityTypes, getRawType, getRequiredAnnotation, getRequiredAssociation, getRequiredField, getRequiredGetter, getRequiredSetter, getRequiredWither, getSetter, getSpelExpression, getType, getTypeInformation, getWither, hasActualTypeAnnotation, isAnnotationPresent, isArray, isAssociation, isCollectionLike, isEntity, isMap, isTransient, isVersionProperty, usePropertyAccesspublic SimpleElasticsearchPersistentProperty(Property property, PersistentEntity<?,ElasticsearchPersistentProperty> owner, SimpleTypeHolder simpleTypeHolder, @Nullable FieldNamingStrategy fieldNamingStrategy)
public boolean hasPropertyConverter()
hasPropertyConverter in interface ElasticsearchPersistentPropertyElasticsearchPersistentPropertyConverter is available for this instance.@Nullable public ElasticsearchPersistentPropertyConverter getPropertyConverter()
getPropertyConverter in interface ElasticsearchPersistentPropertyElasticsearchPersistentPropertyConverter for this instance.public boolean isWritable()
isWritable in interface PersistentProperty<ElasticsearchPersistentProperty>isWritable in class AnnotationBasedPersistentProperty<ElasticsearchPersistentProperty>public boolean isReadable()
ElasticsearchPersistentPropertyisReadable in interface ElasticsearchPersistentPropertypublic boolean storeNullValue()
storeNullValue in interface ElasticsearchPersistentPropertyprotected boolean hasExplicitFieldName()
public String getFieldName()
ElasticsearchPersistentPropertygetFieldName in interface ElasticsearchPersistentPropertypublic boolean isIdProperty()
isIdProperty in interface PersistentProperty<ElasticsearchPersistentProperty>isIdProperty in class AnnotationBasedPersistentProperty<ElasticsearchPersistentProperty>protected Association<ElasticsearchPersistentProperty> createAssociation()
createAssociation in class AbstractPersistentProperty<ElasticsearchPersistentProperty>public boolean isImmutable()
isImmutable in interface PersistentProperty<ElasticsearchPersistentProperty>isImmutable in class AbstractPersistentProperty<ElasticsearchPersistentProperty>public boolean isParentProperty()
ElasticsearchPersistentPropertyElasticsearchPersistentEntity. This method is mainly used by ElasticsearchPersistentEntity
implementation to discover parent property candidates on ElasticsearchPersistentEntity creation you should
rather call ElasticsearchPersistentEntity#getScoreProperty() to determine whether the current property is
the parent property of that ElasticsearchPersistentEntity under consideration.isParentProperty in interface ElasticsearchPersistentPropertypublic boolean isSeqNoPrimaryTermProperty()
ElasticsearchPersistentPropertySeqNoPrimaryTerm property.isSeqNoPrimaryTermProperty in interface ElasticsearchPersistentPropertySeqNoPrimaryTermpublic boolean isGeoPointProperty()
isGeoPointProperty in interface ElasticsearchPersistentPropertypublic boolean isGeoShapeProperty()
isGeoShapeProperty in interface ElasticsearchPersistentPropertypublic boolean isJoinFieldProperty()
isJoinFieldProperty in interface ElasticsearchPersistentPropertypublic boolean isCompletionProperty()
isCompletionProperty in interface ElasticsearchPersistentPropertyCopyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.