Class Regions
java.lang.Object
org.springframework.data.gemfire.mapping.Regions
-
Constructor Summary
ConstructorsConstructorDescriptionRegions(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, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
Regions
public Regions(@NonNull Iterable<Region<?, ?>> regions, @NonNull MappingContext<? extends GemfirePersistentEntity<?>, ?> mappingContext) - Parameters:
regions-Iterableof cacheRegions; must not be null.mappingContext- Spring DataMappingContextused for data mapping; must not be null.- See Also:
-
-
Method Details
-
getRegion
Returns theRegionthe given type is mapped to. Will try to find aRegionwith 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
Regionthe given type is mapped to.
-
getRegion
Returns theRegionwith 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
Regionwith the given name or path.
-
iterator
-