Spring Data Solr

org.springframework.data.solr.core.mapping
Class SimpleSolrPersistentProperty

java.lang.Object
  extended by org.springframework.data.mapping.model.AbstractPersistentProperty<P>
      extended by org.springframework.data.mapping.model.AnnotationBasedPersistentProperty<SolrPersistentProperty>
          extended by org.springframework.data.solr.core.mapping.SimpleSolrPersistentProperty
All Implemented Interfaces:
PersistentProperty<SolrPersistentProperty>, SolrPersistentProperty

public class SimpleSolrPersistentProperty
extends AnnotationBasedPersistentProperty<SolrPersistentProperty>
implements SolrPersistentProperty

Solr specific PersistentProperty implementation processing taking Field into account

Author:
Christoph Strobl

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.springframework.data.solr.core.mapping.SolrPersistentProperty
SolrPersistentProperty.PropertyToFieldNameConverter
 
Field Summary
 
Fields inherited from class org.springframework.data.mapping.model.AbstractPersistentProperty
association, field, information, name, owner, propertyDescriptor, rawType
 
Constructor Summary
SimpleSolrPersistentProperty(Field field, PropertyDescriptor propertyDescriptor, PersistentEntity<?,SolrPersistentProperty> owner, SimpleTypeHolder simpleTypeHolder)
           
 
Method Summary
 boolean containsWildcard()
           
protected  Association<SolrPersistentProperty> createAssociation()
           
 String getFieldName()
          Get name of field under attention to Field annotation
 boolean isIdProperty()
           
 boolean isReadonly()
           
 
Methods inherited from class org.springframework.data.mapping.model.AnnotationBasedPersistentProperty
findAnnotation, getSpelExpression, isAnnotationPresent, isAssociation, isTransient, isVersionProperty, toString
 
Methods inherited from class org.springframework.data.mapping.model.AbstractPersistentProperty
equals, getActualType, 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, wait, wait, wait
 
Methods inherited from interface org.springframework.data.mapping.PersistentProperty
findAnnotation, getActualType, getAssociation, getComponentType, getField, getGetter, getMapValueType, getName, getOwner, getPersistentEntityType, getRawType, getSetter, getSpelExpression, getType, getTypeInformation, isAnnotationPresent, isArray, isAssociation, isCollectionLike, isEntity, isMap, isTransient, isVersionProperty, shallBePersisted
 

Constructor Detail

SimpleSolrPersistentProperty

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

getFieldName

public String getFieldName()
Description copied from interface: SolrPersistentProperty
Get name of field under attention to Field annotation

Specified by:
getFieldName in interface SolrPersistentProperty
Returns:

isReadonly

public boolean isReadonly()
Specified by:
isReadonly in interface SolrPersistentProperty
Returns:
true if Field is present and not marked Indexed.readonly() = true

isIdProperty

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

createAssociation

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

containsWildcard

public boolean containsWildcard()
Specified by:
containsWildcard in interface SolrPersistentProperty
Returns:
true if Field.value() contains *

Spring Data Solr

Copyright © 2011-2014-2014 Pivotal. All Rights Reserved.