Spring Data Couchbase

org.springframework.data.couchbase.core.mapping
Class BasicCouchbasePersistentProperty

java.lang.Object
  extended by org.springframework.data.mapping.model.AbstractPersistentProperty<P>
      extended by org.springframework.data.mapping.model.AnnotationBasedPersistentProperty<CouchbasePersistentProperty>
          extended by org.springframework.data.couchbase.core.mapping.BasicCouchbasePersistentProperty
All Implemented Interfaces:
CouchbasePersistentProperty, PersistentProperty<CouchbasePersistentProperty>

public class BasicCouchbasePersistentProperty
extends AnnotationBasedPersistentProperty<CouchbasePersistentProperty>
implements CouchbasePersistentProperty

Implements annotated property representations of a given Field instance.

This object is used to gather information out of properties on objects that need to be persisted. For example, it supports overriding of the actual property name by providing custom annotations.

Author:
Michael Nitschinger

Field Summary
 
Fields inherited from class org.springframework.data.mapping.model.AbstractPersistentProperty
association, field, information, name, owner, propertyDescriptor, rawType
 
Constructor Summary
BasicCouchbasePersistentProperty(Field field, PropertyDescriptor propertyDescriptor, CouchbasePersistentEntity<?> owner, SimpleTypeHolder simpleTypeHolder, FieldNamingStrategy fieldNamingStrategy)
          Create a new instance of the BasicCouchbasePersistentProperty class.
 
Method Summary
protected  Association<CouchbasePersistentProperty> createAssociation()
          Creates a new Association.
 String getFieldName()
          Returns the field name of the property.
 
Methods inherited from class org.springframework.data.mapping.model.AnnotationBasedPersistentProperty
findAnnotation, findPropertyOrOwnerAnnotation, getSpelExpression, isAnnotationPresent, isAssociation, isIdProperty, isTransient, isVersionProperty, toString, usePropertyAccess
 
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, findPropertyOrOwnerAnnotation, getActualType, getAssociation, getComponentType, getField, getGetter, getMapValueType, getName, getOwner, getPersistentEntityType, getRawType, getSetter, getSpelExpression, getType, getTypeInformation, isAnnotationPresent, isArray, isAssociation, isCollectionLike, isEntity, isIdProperty, isMap, isTransient, isVersionProperty, shallBePersisted, usePropertyAccess
 

Constructor Detail

BasicCouchbasePersistentProperty

public BasicCouchbasePersistentProperty(Field field,
                                        PropertyDescriptor propertyDescriptor,
                                        CouchbasePersistentEntity<?> owner,
                                        SimpleTypeHolder simpleTypeHolder,
                                        FieldNamingStrategy fieldNamingStrategy)
Create a new instance of the BasicCouchbasePersistentProperty class.

Parameters:
field - the field of the original reflection.
propertyDescriptor - the PropertyDescriptor.
owner - the original owner of the property.
simpleTypeHolder - the type holder.
Method Detail

createAssociation

protected Association<CouchbasePersistentProperty> createAssociation()
Creates a new Association.

Specified by:
createAssociation in class AbstractPersistentProperty<CouchbasePersistentProperty>

getFieldName

public String getFieldName()
Returns the field name of the property. The field name can be different from the actual property name by using a custom annotation.

Specified by:
getFieldName in interface CouchbasePersistentProperty

Spring Data Couchbase

Copyright © 2011-2014–2014 Pivotal Software, Inc.. All rights reserved.