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, Mark Paluch
-
Constructor Summary
ConstructorsConstructorDescriptionBasicCouchbasePersistentProperty(Property property, CouchbasePersistentEntity<?> owner, SimpleTypeHolder simpleTypeHolder, FieldNamingStrategy fieldNamingStrategy) Create a new instance of the BasicCouchbasePersistentProperty class. -
Method Summary
Modifier and TypeMethodDescriptionprotected Association<CouchbasePersistentProperty>Creates a new Association.Returns the field name of the property.booleanbooleanMethods inherited from class org.springframework.data.mapping.model.AnnotationBasedPersistentProperty
findAnnotation, findPropertyOrOwnerAnnotation, getAssociationTargetTypeInformation, getSpelExpression, isAnnotationPresent, isAssociation, isTransient, isVersionProperty, isWritable, toString, usePropertyAccessMethods inherited from class org.springframework.data.mapping.model.AbstractPersistentProperty
equals, getActualType, getActualTypeInformation, getAssociation, getAssociationTargetType, getComponentType, getField, getGetter, getMapValueType, getName, getOwner, getPersistentEntityTypeInformation, getProperty, getRawType, getSetter, getType, getTypeInformation, getWither, hashCode, isArray, isCollectionLike, isEntity, isImmutable, isMap, isReadableMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.springframework.data.mapping.PersistentProperty
findAnnotation, findPropertyOrOwnerAnnotation, getAccessorForOwner, getActualType, getAssociation, getAssociationTargetType, getAssociationTargetTypeInformation, getComponentType, getField, getGetter, getMapValueType, getName, getOwner, getPersistentEntityTypeInformation, getRawType, getRequiredAnnotation, getRequiredAssociation, getRequiredField, getRequiredGetter, getRequiredSetter, getRequiredWither, getSetter, getSpelExpression, getType, getTypeInformation, getWither, hasActualTypeAnnotation, isAnnotationPresent, isArray, isAssociation, isCollectionLike, isEntity, isImmutable, isMap, isReadable, isTransient, isVersionProperty, isWritable, usePropertyAccess
-
Constructor Details
-
BasicCouchbasePersistentProperty
public BasicCouchbasePersistentProperty(Property property, CouchbasePersistentEntity<?> owner, SimpleTypeHolder simpleTypeHolder, FieldNamingStrategy fieldNamingStrategy) Create a new instance of the BasicCouchbasePersistentProperty class.- Parameters:
property- the PropertyDescriptor.owner- the original owner of the property.simpleTypeHolder- the type holder.
-
-
Method Details
-
createAssociation
Creates a new Association.- Specified by:
createAssociationin classAbstractPersistentProperty<CouchbasePersistentProperty>
-
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:
getFieldNamein interfaceCouchbasePersistentProperty
-
isIdProperty
public boolean isIdProperty()- Specified by:
isIdPropertyin interfacePersistentProperty<CouchbasePersistentProperty>- Overrides:
isIdPropertyin classAnnotationBasedPersistentProperty<CouchbasePersistentProperty>
-
isExpirationProperty
public boolean isExpirationProperty()- Specified by:
isExpirationPropertyin interfaceCouchbasePersistentProperty
-