Class GemfirePersistentProperty

java.lang.Object
org.springframework.data.mapping.model.AbstractPersistentProperty<P>
org.springframework.data.mapping.model.AnnotationBasedPersistentProperty<GemfirePersistentProperty>
org.springframework.data.gemfire.mapping.GemfirePersistentProperty
All Implemented Interfaces:
org.springframework.data.mapping.PersistentProperty<GemfirePersistentProperty>

public class GemfirePersistentProperty extends org.springframework.data.mapping.model.AnnotationBasedPersistentProperty<GemfirePersistentProperty>
PersistentProperty implementation to for Gemfire related metadata.
See Also:
  • AnnotationBasedPersistentProperty
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected static final Set<String>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    GemfirePersistentProperty(org.springframework.data.mapping.model.Property property, org.springframework.data.mapping.PersistentEntity<?,GemfirePersistentProperty> owner, org.springframework.data.mapping.model.SimpleTypeHolder simpleTypeHolder)
    Constructs an instance of GemfirePersistentProperty initialized with entity persistent property information (meta-data).
  • Method Summary

    Modifier and Type
    Method
    Description
    protected org.springframework.data.mapping.Association<GemfirePersistentProperty>
     
    Returns the name of this {@link GemfirePersistentProperty's} type.
    boolean
    Determines whether this GemfirePersistentProperty explicitly identifies an entity identifier, one in which the user explicitly annotated the owning entity class member (Field or property, i.e.
    boolean
     
    boolean
    Determines whether this persistent property is transient and thus impervious to persistent operations.
    boolean
     

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

    findAnnotation, findPropertyOrOwnerAnnotation, getAssociationTargetTypeInformation, getSpelExpression, isAnnotationPresent, isAssociation, 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.mapping.PersistentProperty

    getAccessorForOwner, getRequiredAnnotation, getRequiredAssociation, getRequiredField, getRequiredGetter, getRequiredSetter, getRequiredWither, hasActualTypeAnnotation
  • Field Details

    • SUPPORTED_IDENTIFIER_NAMES

      protected static final Set<String> SUPPORTED_IDENTIFIER_NAMES
  • Constructor Details

    • GemfirePersistentProperty

      public GemfirePersistentProperty(org.springframework.data.mapping.model.Property property, org.springframework.data.mapping.PersistentEntity<?,GemfirePersistentProperty> owner, org.springframework.data.mapping.model.SimpleTypeHolder simpleTypeHolder)
      Constructs an instance of GemfirePersistentProperty initialized with entity persistent property information (meta-data).
      Parameters:
      property - Property representing the entity's persistent property.
      owner - entity owning the persistent property.
      simpleTypeHolder - SimpleTypeHolder used to handle primitive types.
      See Also:
      • PersistentEntity
      • PersistentProperty
      • Property
      • SimpleTypeHolder
  • Method Details

    • createAssociation

      protected org.springframework.data.mapping.Association<GemfirePersistentProperty> createAssociation()
      Specified by:
      createAssociation in class org.springframework.data.mapping.model.AbstractPersistentProperty<GemfirePersistentProperty>
    • isExplicitIdProperty

      public boolean isExplicitIdProperty()
      Determines whether this GemfirePersistentProperty explicitly identifies an entity identifier, one in which the user explicitly annotated the owning entity class member (Field or property, i.e. getter/setter).
      Returns:
      a boolean value indicating whether this GemfirePersistentProperty explicitly identifies an entity identifier.
      See Also:
      • Id
      • AnnotationBasedPersistentProperty.isAnnotationPresent(Class)
    • isIdProperty

      public boolean isIdProperty()
      Specified by:
      isIdProperty in interface org.springframework.data.mapping.PersistentProperty<GemfirePersistentProperty>
      Overrides:
      isIdProperty in class org.springframework.data.mapping.model.AnnotationBasedPersistentProperty<GemfirePersistentProperty>
    • isTransient

      public boolean isTransient()
      Determines whether this persistent property is transient and thus impervious to persistent operations. A persistent property is considered transient if the owning entity's field/property is annotated with Transient or the field/property is modified with transient.
      Specified by:
      isTransient in interface org.springframework.data.mapping.PersistentProperty<GemfirePersistentProperty>
      Overrides:
      isTransient in class org.springframework.data.mapping.model.AnnotationBasedPersistentProperty<GemfirePersistentProperty>
      Returns:
      a boolean value indicating whether this persistent property is transient and thus impervious to persistent operations.
    • getTypeName

      public String getTypeName()
      Returns the name of this {@link GemfirePersistentProperty's} type.
      Returns:
      the name of this {@link GemfirePersistentProperty's} type.
      See Also:
    • usePropertyAccess

      public boolean usePropertyAccess()
      Specified by:
      usePropertyAccess in interface org.springframework.data.mapping.PersistentProperty<GemfirePersistentProperty>
      Overrides:
      usePropertyAccess in class org.springframework.data.mapping.model.AnnotationBasedPersistentProperty<GemfirePersistentProperty>