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.
| Constructor and Description |
|---|
BasicCouchbasePersistentProperty(org.springframework.data.mapping.model.Property property,
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 |
isExpirationProperty() |
boolean |
isIdProperty() |
findAnnotation, findPropertyOrOwnerAnnotation, getAssociationTargetTypeInformation, getSpelExpression, isAnnotationPresent, isAssociation, isTransient, isVersionProperty, isWritable, toString, usePropertyAccessequals, getActualType, getActualTypeInformation, getAssociation, getAssociationTargetType, getComponentType, getField, getGetter, getMapValueType, getName, getOwner, getPersistentEntityTypeInformation, getPersistentEntityTypes, getProperty, getRawType, getSetter, getType, getTypeInformation, getWither, hashCode, isArray, isCollectionLike, isEntity, isImmutable, isMapclone, finalize, getClass, notify, notifyAll, wait, wait, waitfindAnnotation, findPropertyOrOwnerAnnotation, getAccessorForOwner, getActualType, getAssociation, getAssociationTargetType, getAssociationTargetTypeInformation, getComponentType, getField, getGetter, getMapValueType, getName, getOwner, getPersistentEntityTypeInformation, getPersistentEntityTypes, getRawType, getRequiredAnnotation, getRequiredAssociation, getRequiredField, getRequiredGetter, getRequiredSetter, getRequiredWither, getSetter, getSpelExpression, getType, getTypeInformation, getWither, hasActualTypeAnnotation, isAnnotationPresent, isArray, isAssociation, isCollectionLike, isEntity, isImmutable, isMap, isTransient, isVersionProperty, isWritable, usePropertyAccesspublic BasicCouchbasePersistentProperty(org.springframework.data.mapping.model.Property property,
CouchbasePersistentEntity<?> owner,
org.springframework.data.mapping.model.SimpleTypeHolder simpleTypeHolder,
org.springframework.data.mapping.model.FieldNamingStrategy fieldNamingStrategy)
property - 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()
The field name can be different from the actual property name by using a custom annotation.
getFieldName in interface CouchbasePersistentPropertypublic boolean isIdProperty()
isIdProperty in interface org.springframework.data.mapping.PersistentProperty<CouchbasePersistentProperty>isIdProperty in class org.springframework.data.mapping.model.AnnotationBasedPersistentProperty<CouchbasePersistentProperty>public boolean isExpirationProperty()
isExpirationProperty in interface CouchbasePersistentPropertyCopyright © 2011–2023 Pivotal Software, Inc.. All rights reserved.