|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.data.gemfire.mapping.Regions
public class Regions
Simple value object to abstract access to regions by name and mapped type.
| Constructor Summary | |
|---|---|
Regions(Iterable<Region<?,?>> regions,
org.springframework.data.mapping.context.MappingContext<? extends GemfirePersistentEntity<?>,?> context)
Creates a new Regions wrapper for the given Regions and MappingContext. |
|
| Method Summary | ||
|---|---|---|
|
getRegion(Class<T> type)
Returns the Region the given type is mapped to. |
|
|
getRegion(String name)
Returns the region with the given name. |
|
Iterator<Region<?,?>> |
iterator()
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Regions(Iterable<Region<?,?>> regions,
org.springframework.data.mapping.context.MappingContext<? extends GemfirePersistentEntity<?>,?> context)
Regions wrapper for the given Regions and MappingContext.
regions - must not be null.context - must not be null.| Method Detail |
|---|
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.
type - must not be null.
public <S,T> Region<S,T> getRegion(String name)
name - must not be null.
public Iterator<Region<?,?>> iterator()
iterator in interface Iterable<Region<?,?>>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||