Class Regions
java.lang.Object
org.springframework.data.gemfire.mapping.Regions
- All Implemented Interfaces:
Iterable<org.apache.geode.cache.Region<?,
?>>
- See Also:
-
Iterable
Region
-
Constructor Summary
ConstructorDescriptionRegions
(Iterable<org.apache.geode.cache.Region<?, ?>> regions, org.springframework.data.mapping.context.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<org.apache.geode.cache.Region<?, ?>> regions, @NonNull org.springframework.data.mapping.context.MappingContext<? extends GemfirePersistentEntity<?>, ?> mappingContext)
-
-
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
-