Spring Data for VMware GemFire
Class GemfirePersistentEntity<T>
java.lang.Object
org.springframework.data.mapping.model.BasicPersistentEntity<T,GemfirePersistentProperty>
 
org.springframework.data.gemfire.mapping.GemfirePersistentEntity<T>
- All Implemented Interfaces:
- Iterable<GemfirePersistentProperty>,- org.springframework.data.mapping.model.MutablePersistentEntity<T,,- GemfirePersistentProperty> - org.springframework.data.mapping.PersistentEntity<T,- GemfirePersistentProperty> 
public class GemfirePersistentEntity<T>
extends org.springframework.data.mapping.model.BasicPersistentEntity<T,GemfirePersistentProperty> 
PersistentEntity implementation adding custom GemFire persistent entity related metadata, such as the
 Region to which the entity is mapped, etc.- See Also:
- 
- GemfirePersistentProperty
- BasicPersistentEntity
 
- 
Constructor SummaryConstructorsConstructorDescriptionGemfirePersistentEntity(org.springframework.data.util.TypeInformation<T> information) Constructs a new instance ofGemfirePersistentEntityinitialized with the givenTypeInformationdescribing the domain object (entity)Classtype.
- 
Method SummaryModifier and TypeMethodDescriptionprotected static StringgetAnnotationAttributeStringValue(Annotation annotation, String attributeName) <T extends Annotation>
 TReturns theRegionAnnotationused to annotate thisPersistentEntityor null if thisPersistentEntitywas not annotated with aRegionAnnotation.Class<? extends Annotation>Returns theClasstype of theRegionAnnotationused to annotate this entity or null if this entity was not annotated with aRegionAnnotation.protected static AnnotationresolveRegionAnnotation(Class<?> persistentEntityType) protected static StringresolveRegionName(Class<?> persistentEntityType, Annotation regionAnnotation) protected GemfirePersistentPropertyMethods inherited from class org.springframework.data.mapping.model.BasicPersistentEntityaddAssociation, addPersistentProperty, doWithAssociations, doWithAssociations, doWithProperties, doWithProperties, findAnnotation, getEvaluationContext, getEvaluationContext, getFallbackIsNewStrategy, getIdentifierAccessor, getIdProperty, getInstanceCreatorMetadata, getName, getPersistenceConstructor, getPersistentProperties, getPersistentProperty, getPropertyAccessor, getPropertyPathAccessor, getType, getTypeAlias, getTypeInformation, getVersionProperty, hasIdProperty, hasVersionProperty, isAnnotationPresent, isCreatorArgument, isIdProperty, isImmutable, isNew, isVersionProperty, iterator, requiresPropertyPopulation, setEvaluationContextProvider, setPersistentPropertyAccessorFactory, verifyMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.IterableforEach, spliteratorMethods inherited from interface org.springframework.data.mapping.PersistentEntitydoWithAll, getPersistentProperty, getRequiredAnnotation, getRequiredIdProperty, getRequiredPersistentProperty, getRequiredVersionProperty, isConstructorArgument
- 
Constructor Details- 
GemfirePersistentEntityConstructs a new instance ofGemfirePersistentEntityinitialized with the givenTypeInformationdescribing the domain object (entity)Classtype.- Parameters:
- information-- TypeInformationmeta-data describing the domain object (entity)- Classtype.
- Throws:
- IllegalArgumentException- if the given- TypeInformationis null.
- See Also:
- 
- TypeInformation
 
 
 
- 
- 
Method Details- 
resolveRegionAnnotation
- 
resolveRegionNameprotected static String resolveRegionName(Class<?> persistentEntityType, Annotation regionAnnotation) 
- 
getAnnotationAttributeStringValueprotected static String getAnnotationAttributeStringValue(Annotation annotation, String attributeName) 
- 
getRegionAnnotationReturns theRegionAnnotationused to annotate thisPersistentEntityor null if thisPersistentEntitywas not annotated with aRegionAnnotation.- Type Parameters:
- T- concrete- Classtype of the- Region- Annotation.
- Returns:
- the RegionAnnotationused to annotate thisPersistentEntityor null if thisPersistentEntitywas not annotated with aRegionAnnotation.
- See Also:
 
- 
getRegionAnnotationTypeReturns theClasstype of theRegionAnnotationused to annotate this entity or null if this entity was not annotated with aRegionAnnotation.- Returns:
- the Classtype of theRegionAnnotationused to annotate this entity or null if this entity was not annotated with aRegionAnnotation.
- See Also:
 
- 
getRegionName- Returns:
- the nameof theRegionin which thisPersistentEntitywill be stored.
- See Also:
- 
- Region.getName()
 
 
- 
returnPropertyIfBetterIdPropertyCandidateOrNullprotected GemfirePersistentProperty returnPropertyIfBetterIdPropertyCandidateOrNull(GemfirePersistentProperty property) - Overrides:
- returnPropertyIfBetterIdPropertyCandidateOrNullin class- org.springframework.data.mapping.model.BasicPersistentEntity<T,- GemfirePersistentProperty> 
 
 
- 
