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
ConstructorDescriptionBasicCouchbasePersistentProperty
(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.boolean
boolean
Methods inherited from class org.springframework.data.mapping.model.AnnotationBasedPersistentProperty
findAnnotation, findPropertyOrOwnerAnnotation, getAssociationTargetTypeInformation, getSpelExpression, getValueConverterType, isAnnotationPresent, isAssociation, isTransient, isVersionProperty, isWritable, toString, usePropertyAccess
Methods 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
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods 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, getValueConverterType, getWither, hasActualTypeAnnotation, hasValueConverter, isAnnotationPresent, isArray, isAssociation, isCollectionLike, isEntity, isImmutable, isMap, 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:
createAssociation
in 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:
getFieldName
in interfaceCouchbasePersistentProperty
-
isIdProperty
public boolean isIdProperty()- Specified by:
isIdProperty
in interfacePersistentProperty<CouchbasePersistentProperty>
- Overrides:
isIdProperty
in classAnnotationBasedPersistentProperty<CouchbasePersistentProperty>
-
isExpirationProperty
public boolean isExpirationProperty()- Specified by:
isExpirationProperty
in interfaceCouchbasePersistentProperty
-