Class BasicCosmosPersistentProperty
java.lang.Object
org.springframework.data.mapping.model.AbstractPersistentProperty<P>
org.springframework.data.mapping.model.AnnotationBasedPersistentProperty<CosmosPersistentProperty>
com.azure.spring.data.cosmos.core.mapping.BasicCosmosPersistentProperty
- All Implemented Interfaces:
CosmosPersistentProperty
,org.springframework.data.mapping.PersistentProperty<CosmosPersistentProperty>
public class BasicCosmosPersistentProperty
extends org.springframework.data.mapping.model.AnnotationBasedPersistentProperty<CosmosPersistentProperty>
implements CosmosPersistentProperty
Special
CosmosPersistentProperty
that takes annotations at a property into account.-
Constructor Summary
ConstructorDescriptionBasicCosmosPersistentProperty
(org.springframework.data.mapping.model.Property property, CosmosPersistentEntity<?> owner, org.springframework.data.mapping.model.SimpleTypeHolder simpleTypeHolder) Creates a newBasicCosmosPersistentProperty
. -
Method Summary
Modifier and TypeMethodDescriptionprotected org.springframework.data.mapping.Association<CosmosPersistentProperty>
boolean
Methods inherited from class org.springframework.data.mapping.model.AnnotationBasedPersistentProperty
findAnnotation, findPropertyOrOwnerAnnotation, getAssociationTargetTypeInformation, getSpelExpression, 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, getPersistentEntityTypes, 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, getPersistentEntityTypes, getRawType, getRequiredAnnotation, getRequiredAssociation, getRequiredField, getRequiredGetter, getRequiredSetter, getRequiredWither, getSetter, getSpelExpression, getType, getTypeInformation, getWither, hasActualTypeAnnotation, isAnnotationPresent, isArray, isAssociation, isCollectionLike, isEntity, isImmutable, isMap, isTransient, isVersionProperty, isWritable, usePropertyAccess
-
Constructor Details
-
BasicCosmosPersistentProperty
public BasicCosmosPersistentProperty(org.springframework.data.mapping.model.Property property, CosmosPersistentEntity<?> owner, org.springframework.data.mapping.model.SimpleTypeHolder simpleTypeHolder) Creates a newBasicCosmosPersistentProperty
.- Parameters:
property
- must not be null.owner
- must not be null.simpleTypeHolder
- must not be null.
-
-
Method Details
-
createAssociation
protected org.springframework.data.mapping.Association<CosmosPersistentProperty> createAssociation()- Specified by:
createAssociation
in classorg.springframework.data.mapping.model.AbstractPersistentProperty<CosmosPersistentProperty>
-
isIdProperty
public boolean isIdProperty()- Specified by:
isIdProperty
in interfaceorg.springframework.data.mapping.PersistentProperty<CosmosPersistentProperty>
- Overrides:
isIdProperty
in classorg.springframework.data.mapping.model.AnnotationBasedPersistentProperty<CosmosPersistentProperty>
-