Class CachingMongoPersistentProperty

java.lang.Object
org.springframework.data.mapping.model.AbstractPersistentProperty<P>
org.springframework.data.mapping.model.AnnotationBasedPersistentProperty<MongoPersistentProperty>
org.springframework.data.mongodb.core.mapping.BasicMongoPersistentProperty
org.springframework.data.mongodb.core.mapping.CachingMongoPersistentProperty
All Implemented Interfaces:
org.springframework.data.mapping.PersistentProperty<MongoPersistentProperty>, MongoPersistentProperty

public class CachingMongoPersistentProperty extends BasicMongoPersistentProperty
Author:
Oliver Gierke, Mark Paluch
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.springframework.data.mongodb.core.mapping.MongoPersistentProperty

    MongoPersistentProperty.PropertyToFieldNameConverter
  • Field Summary

    Fields inherited from class org.springframework.data.mongodb.core.mapping.BasicMongoPersistentProperty

    ID_FIELD_NAME
  • Constructor Summary

    Constructors
    Constructor
    Description
    CachingMongoPersistentProperty(org.springframework.data.mapping.model.Property property, MongoPersistentEntity<?> owner, org.springframework.data.mapping.model.SimpleTypeHolder simpleTypeHolder, org.springframework.data.mapping.model.FieldNamingStrategy fieldNamingStrategy)
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the DBRef if the property is a reference.
    Returns the key to be used to store the value of the property inside a Mongo Document.
    Returns the Java FieldType of the field a property is persisted to.
    boolean
     
    boolean
    Returns whether the property is a DBRef.
    boolean
    Also considers fields as id that are of supported id type and name.
    boolean
     
    boolean
    Returns whether property access shall be used for reading the property value.
    boolean
    Returns whether the property should be written to the database if its value is null.

    Methods inherited from class org.springframework.data.mapping.model.AnnotationBasedPersistentProperty

    findAnnotation, findPropertyOrOwnerAnnotation, getAssociationTargetTypeInformation, getSpelExpression, isAnnotationPresent, isVersionProperty, isWritable, toString

    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.mongodb.core.mapping.MongoPersistentProperty

    hasExplicitWriteTarget, isUnwrapped

    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, getWither, hasActualTypeAnnotation, isAnnotationPresent, isArray, isCollectionLike, isEntity, isImmutable, isMap, isVersionProperty, isWritable