Constructor and Description |
---|
Regions(Iterable<Region<?,?>> regions,
org.springframework.data.mapping.context.MappingContext<? extends GemfirePersistentEntity<?>,?> context)
|
Modifier and Type | Method and Description |
---|---|
<T> Region<?,T> |
getRegion(Class<T> type)
Returns the
Region the given type is mapped to. |
<S,T> Region<S,T> |
getRegion(String namePath)
Returns the
Region with the given name or path. |
Iterator<Region<?,?>> |
iterator() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public Regions(Iterable<Region<?,?>> regions, org.springframework.data.mapping.context.MappingContext<? extends GemfirePersistentEntity<?>,?> context)
regions
- must not be null.context
- must not be null.public <T> Region<?,T> getRegion(Class<T> type)
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.type
- must not be null.Region
the given type is mapped to.public <S,T> Region<S,T> getRegion(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.