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>,MutablePersistentEntity<T,,GemfirePersistentProperty> PersistentEntity<T,GemfirePersistentProperty>
PersistentEntity implementation adding custom GemFire persistent entity related metadata, such as the
Region to which the entity is mapped, etc.- Author:
- Oliver Gierke, John Blum, Gregory Green
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionGemfirePersistentEntity(TypeInformation<T> information) Constructs a new instance ofGemfirePersistentEntityinitialized with the givenTypeInformationdescribing the domain object (entity)Classtype. -
Method Summary
Modifier 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.BasicPersistentEntity
addAssociation, 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.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface org.springframework.data.mapping.PersistentEntity
doWithAll, getPersistentProperty, getRequiredAnnotation, getRequiredIdProperty, getRequiredPersistentProperty, getRequiredVersionProperty, isConstructorArgument
-
Constructor Details
-
GemfirePersistentEntity
Constructs 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 givenTypeInformationis null.- See Also:
-
-
Method Details
-
resolveRegionAnnotation
-
resolveRegionName
protected static String resolveRegionName(Class<?> persistentEntityType, Annotation regionAnnotation) -
getAnnotationAttributeStringValue
protected static String getAnnotationAttributeStringValue(Annotation annotation, String attributeName) -
getRegionAnnotation
Returns theRegionAnnotationused to annotate thisPersistentEntityor null if thisPersistentEntitywas not annotated with aRegionAnnotation.- Type Parameters:
T- concreteClasstype of theRegionAnnotation.- Returns:
- the
RegionAnnotationused to annotate thisPersistentEntityor null if thisPersistentEntitywas not annotated with aRegionAnnotation. - See Also:
-
getRegionAnnotationType
Returns 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:
-
returnPropertyIfBetterIdPropertyCandidateOrNull
protected GemfirePersistentProperty returnPropertyIfBetterIdPropertyCandidateOrNull(GemfirePersistentProperty property) - Overrides:
returnPropertyIfBetterIdPropertyCandidateOrNullin classBasicPersistentEntity<T,GemfirePersistentProperty>
-