Class Regions
java.lang.Object
org.springframework.data.gemfire.mapping.Regions
-
Constructor Summary
ConstructorDescriptionRegions
(Iterable<Region<?, ?>> regions, MappingContext<? extends GemfirePersistentEntity<?>, ?> mappingContext) -
Method Summary
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
-
Constructor Details
-
Regions
public Regions(@NonNull Iterable<Region<?, ?>> regions, @NonNull MappingContext<? extends GemfirePersistentEntity<?>, ?> mappingContext) - Parameters:
regions
-Iterable
of cacheRegions
; must not be null.mappingContext
- Spring DataMappingContext
used for data mapping; must not be null.- See Also:
-
-
Method Details
-
getRegion
Returns theRegion
the given type is mapped to. Will try to find aRegion
with the simple class name in case no mapping information is found.- Type Parameters:
T
- the Region value class type.- Parameters:
entityType
- must not be null.- Returns:
- the
Region
the given type is mapped to.
-
getRegion
Returns theRegion
with the given name or path.- Type Parameters:
S
- the Region key class type.T
- the Region value class type.- Parameters:
namePath
- must not be null, and either identifies the Region by name or the fully-qualified path.- Returns:
- the
Region
with the given name or path.
-
iterator
-