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
ConstructorDescriptionGemfirePersistentEntity
(TypeInformation<T> information) Constructs a new instance ofGemfirePersistentEntity
initialized with the givenTypeInformation
describing the domain object (entity)Class
type. -
Method Summary
Modifier and TypeMethodDescriptionprotected static String
getAnnotationAttributeStringValue
(Annotation annotation, String attributeName) <T extends Annotation>
TReturns theRegion
Annotation
used to annotate thisPersistentEntity
or null if thisPersistentEntity
was not annotated with aRegion
Annotation
.Class<? extends Annotation>
Returns theClass
type of theRegion
Annotation
used to annotate this entity or null if this entity was not annotated with aRegion
Annotation
.protected static Annotation
resolveRegionAnnotation
(Class<?> persistentEntityType) protected static String
resolveRegionName
(Class<?> persistentEntityType, Annotation regionAnnotation) protected GemfirePersistentProperty
Methods inherited from class org.springframework.data.mapping.model.BasicPersistentEntity
addAssociation, addPersistentProperty, doWithAssociations, doWithAssociations, doWithProperties, doWithProperties, findAnnotation, getEvaluationContext, getEvaluationContext, getFallbackIsNewStrategy, getIdentifierAccessor, getIdProperty, getName, getPersistenceConstructor, getPersistentProperties, getPersistentProperty, getPropertyAccessor, getPropertyPathAccessor, getType, getTypeAlias, getTypeInformation, getVersionProperty, hasIdProperty, hasVersionProperty, isAnnotationPresent, isConstructorArgument, isIdProperty, isImmutable, isNew, isVersionProperty, iterator, requiresPropertyPopulation, setEvaluationContextProvider, setPersistentPropertyAccessorFactory, verify
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
Methods inherited from interface org.springframework.data.mapping.PersistentEntity
doWithAll, getPersistentProperty, getRequiredAnnotation, getRequiredIdProperty, getRequiredPersistentProperty, getRequiredVersionProperty
-
Constructor Details
-
GemfirePersistentEntity
Constructs a new instance ofGemfirePersistentEntity
initialized with the givenTypeInformation
describing the domain object (entity)Class
type.- Parameters:
information
-TypeInformation
meta-data describing the domain object (entity)Class
type.- Throws:
IllegalArgumentException
- if the givenTypeInformation
is 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 theRegion
Annotation
used to annotate thisPersistentEntity
or null if thisPersistentEntity
was not annotated with aRegion
Annotation
.- Type Parameters:
T
- concreteClass
type of theRegion
Annotation
.- Returns:
- the
Region
Annotation
used to annotate thisPersistentEntity
or null if thisPersistentEntity
was not annotated with aRegion
Annotation
. - See Also:
-
getRegionAnnotationType
Returns theClass
type of theRegion
Annotation
used to annotate this entity or null if this entity was not annotated with aRegion
Annotation
.- Returns:
- the
Class
type of theRegion
Annotation
used to annotate this entity or null if this entity was not annotated with aRegion
Annotation
. - See Also:
-
getRegionName
- Returns:
- the
name
of theRegion
in which thisPersistentEntity
will be stored. - See Also:
-
returnPropertyIfBetterIdPropertyCandidateOrNull
protected GemfirePersistentProperty returnPropertyIfBetterIdPropertyCandidateOrNull(GemfirePersistentProperty property) - Overrides:
returnPropertyIfBetterIdPropertyCandidateOrNull
in classBasicPersistentEntity<T,
GemfirePersistentProperty>
-