org.springframework.data.couchbase.core.mapping
Class BasicCouchbasePersistentProperty
java.lang.Object
org.springframework.data.mapping.model.AbstractPersistentProperty<P>
org.springframework.data.mapping.model.AnnotationBasedPersistentProperty<CouchbasePersistentProperty>
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
| 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 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 |
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.
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
Copyright © 2011-2014–2014 Pivotal Software, Inc.. All rights reserved.