|
|||||||||
| 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<com.gemstone.gemfire.cache.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<com.gemstone.gemfire.cache.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<com.gemstone.gemfire.cache.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> com.gemstone.gemfire.cache.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.
Region the given type is mapped to.public <S,T> com.gemstone.gemfire.cache.Region<S,T> getRegion(String name)
Region with the given name.
name - must not be null.
Region with the given name.public Iterator<com.gemstone.gemfire.cache.Region<?,?>> iterator()
iterator in interface Iterable<com.gemstone.gemfire.cache.Region<?,?>>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||