public class Regions
extends java.lang.Object
implements java.lang.Iterable<org.apache.geode.cache.Region<?,?>>
Constructor and Description |
---|
Regions(java.lang.Iterable<org.apache.geode.cache.Region<?,?>> regions,
org.springframework.data.mapping.context.MappingContext<? extends GemfirePersistentEntity<?>,?> mappingContext)
|
Modifier and Type | Method and Description |
---|---|
<T> org.apache.geode.cache.Region<?,T> |
getRegion(java.lang.Class<T> entityType)
Returns the
Region the given type is mapped to. |
<S,T> org.apache.geode.cache.Region<S,T> |
getRegion(java.lang.String namePath)
Returns the
Region with the given name or path. |
java.util.Iterator<org.apache.geode.cache.Region<?,?>> |
iterator() |
public Regions(java.lang.Iterable<org.apache.geode.cache.Region<?,?>> regions, org.springframework.data.mapping.context.MappingContext<? extends GemfirePersistentEntity<?>,?> mappingContext)
regions
- must not be null.mappingContext
- must not be null.public <T> org.apache.geode.cache.Region<?,T> getRegion(java.lang.Class<T> entityType)
Region
the given type is mapped to. Will try to find
a Region
with the simple class name in case no mapping
information is found.T
- the Region value class type.entityType
- must not be null.Region
the given type is mapped to.public <S,T> org.apache.geode.cache.Region<S,T> getRegion(java.lang.String namePath)
Region
with the given name or path.S
- the Region key class type.T
- the Region value class type.namePath
- must not be null, and either identifies the Region by name or the fully-qualified path.Region
with the given name or path.public java.util.Iterator<org.apache.geode.cache.Region<?,?>> iterator()
iterator
in interface java.lang.Iterable<org.apache.geode.cache.Region<?,?>>