Spring Data Elasticsearch

org.springframework.data.elasticsearch.core.mapping
Class SimpleElasticsearchPersistentProperty

java.lang.Object
  extended by org.springframework.data.mapping.model.AbstractPersistentProperty<P>
      extended by org.springframework.data.mapping.model.AnnotationBasedPersistentProperty<ElasticsearchPersistentProperty>
          extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.springframework.data.elasticsearch.core.mapping.ElasticsearchPersistentProperty
ElasticsearchPersistentProperty.PropertyToFieldNameConverter
 
Field Summary
 
Fields inherited from class org.springframework.data.mapping.model.AbstractPersistentProperty
association, field, information, name, owner, propertyDescriptor, rawType
 
Constructor Summary
SimpleElasticsearchPersistentProperty(Field field, PropertyDescriptor propertyDescriptor, PersistentEntity<?,ElasticsearchPersistentProperty> owner, SimpleTypeHolder simpleTypeHolder)
           
 
Method Summary
protected  Association<ElasticsearchPersistentProperty> createAssociation()
           
 String getFieldName()
           
 boolean isIdProperty()
           
 boolean isVersionProperty()
           
 
Methods inherited from class org.springframework.data.mapping.model.AnnotationBasedPersistentProperty
findAnnotation, getSpelExpression, isAnnotationPresent, isAssociation, isTransient
 
Methods inherited from class org.springframework.data.mapping.model.AbstractPersistentProperty
equals, getAssociation, getComponentType, getField, getGetter, getMapValueType, getName, getOwner, getPersistentEntityType, getRawType, getSetter, getType, getTypeInformation, hashCode, isArray, isCollectionLike, isEntity, isMap, shallBePersisted
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.springframework.data.mapping.PersistentProperty
getAssociation, getComponentType, getField, getGetter, getMapValueType, getName, getOwner, getPersistentEntityType, getRawType, getSetter, getSpelExpression, getType, getTypeInformation, isArray, isAssociation, isCollectionLike, isEntity, isMap, isTransient, shallBePersisted
 

Constructor Detail

SimpleElasticsearchPersistentProperty

public SimpleElasticsearchPersistentProperty(Field field,
                                             PropertyDescriptor propertyDescriptor,
                                             PersistentEntity<?,ElasticsearchPersistentProperty> owner,
                                             SimpleTypeHolder simpleTypeHolder)
Method Detail

getFieldName

public String getFieldName()
Specified by:
getFieldName in interface ElasticsearchPersistentProperty

isIdProperty

public boolean isIdProperty()
Specified by:
isIdProperty in interface PersistentProperty<ElasticsearchPersistentProperty>
Overrides:
isIdProperty in class AnnotationBasedPersistentProperty<ElasticsearchPersistentProperty>

isVersionProperty

public boolean isVersionProperty()
Specified by:
isVersionProperty in interface ElasticsearchPersistentProperty
Specified by:
isVersionProperty in interface PersistentProperty<ElasticsearchPersistentProperty>
Overrides:
isVersionProperty in class AnnotationBasedPersistentProperty<ElasticsearchPersistentProperty>

createAssociation

protected Association<ElasticsearchPersistentProperty> createAssociation()
Specified by:
createAssociation in class AbstractPersistentProperty<ElasticsearchPersistentProperty>

Spring Data Elasticsearch

Copyright © 2013 BioMed Central. All Rights Reserved.