public class BasicCouchbasePersistentProperty extends org.springframework.data.mapping.model.AnnotationBasedPersistentProperty<CouchbasePersistentProperty> implements CouchbasePersistentProperty
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.
Type | Property and Description |
---|---|
boolean |
isId
Gets the value of the property idProperty.
|
Constructor and Description |
---|
BasicCouchbasePersistentProperty(Field field,
PropertyDescriptor propertyDescriptor,
CouchbasePersistentEntity<?> owner,
org.springframework.data.mapping.model.SimpleTypeHolder simpleTypeHolder,
org.springframework.data.mapping.model.FieldNamingStrategy fieldNamingStrategy)
Create a new instance of the BasicCouchbasePersistentProperty class.
|
Modifier and Type | Method and Description |
---|---|
protected org.springframework.data.mapping.Association<CouchbasePersistentProperty> |
createAssociation()
Creates a new Association.
|
String |
getFieldName()
Returns the field name of the property.
|
boolean |
isIdProperty()
Gets the value of the property idProperty.
|
findAnnotation, findPropertyOrOwnerAnnotation, getSpelExpression, isAnnotationPresent, isAssociation, isTransient, isVersionProperty, isWritable, toString, usePropertyAccess
equals, getActualType, getAssociation, getComponentType, getField, getGetter, getMapValueType, getName, getOwner, getPersistentEntityType, getRawType, getSetter, getType, getTypeInformation, hashCode, isArray, isCollectionLike, isEntity, isMap
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
findAnnotation, findPropertyOrOwnerAnnotation, getActualType, getAssociation, getComponentType, getField, getGetter, getMapValueType, getName, getOwner, getPersistentEntityType, getRawType, getSetter, getSpelExpression, getType, getTypeInformation, isAnnotationPresent, isArray, isAssociation, isCollectionLike, isEntity, isMap, isTransient, isVersionProperty, isWritable, usePropertyAccess
public boolean isIdProperty
isIdProperty
in interface org.springframework.data.mapping.PersistentProperty<CouchbasePersistentProperty>
isIdProperty
in class org.springframework.data.mapping.model.AnnotationBasedPersistentProperty<CouchbasePersistentProperty>
public BasicCouchbasePersistentProperty(Field field, PropertyDescriptor propertyDescriptor, CouchbasePersistentEntity<?> owner, org.springframework.data.mapping.model.SimpleTypeHolder simpleTypeHolder, org.springframework.data.mapping.model.FieldNamingStrategy fieldNamingStrategy)
field
- the field of the original reflection.propertyDescriptor
- the PropertyDescriptor.owner
- the original owner of the property.simpleTypeHolder
- the type holder.protected org.springframework.data.mapping.Association<CouchbasePersistentProperty> createAssociation()
createAssociation
in class org.springframework.data.mapping.model.AbstractPersistentProperty<CouchbasePersistentProperty>
public String getFieldName()
getFieldName
in interface CouchbasePersistentProperty
public boolean isIdProperty()
isIdProperty
in interface org.springframework.data.mapping.PersistentProperty<CouchbasePersistentProperty>
isIdProperty
in class org.springframework.data.mapping.model.AnnotationBasedPersistentProperty<CouchbasePersistentProperty>
Copyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.