public class BasicCouchbasePersistentProperty extends 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(Property property,
CouchbasePersistentEntity<?> owner,
SimpleTypeHolder simpleTypeHolder,
FieldNamingStrategy fieldNamingStrategy)
Create a new instance of the BasicCouchbasePersistentProperty class.
|
| Modifier and Type | Method and Description |
|---|---|
protected 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(Property property, CouchbasePersistentEntity<?> owner, SimpleTypeHolder simpleTypeHolder, FieldNamingStrategy fieldNamingStrategy)
property - the PropertyDescriptor.owner - the original owner of the property.simpleTypeHolder - the type holder.protected Association<CouchbasePersistentProperty> createAssociation()
createAssociation in class 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 PersistentProperty<CouchbasePersistentProperty>isIdProperty in class AnnotationBasedPersistentProperty<CouchbasePersistentProperty>public boolean isExpirationProperty()
isExpirationProperty in interface CouchbasePersistentPropertyCopyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.