java.lang.Object
org.springframework.data.gemfire.mapping.Regions
All Implemented Interfaces:
Iterable<Region<?,?>>

public class Regions extends Object implements Iterable<Region<?,?>>
Simple value object to abstract access to Regions by name and mapped type.
Author:
Oliver Gierke, John Blum
See Also:
  • Constructor Details

  • Method Details

    • getRegion

      public <T> Region<?,T> getRegion(Class<T> entityType)
      Returns the 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 Parameters:
      T - the Region value class type.
      Parameters:
      entityType - must not be null.
      Returns:
      the Region the given type is mapped to.
    • getRegion

      public <S, T> Region<S,T> getRegion(String namePath)
      Returns the Region 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

      public Iterator<Region<?,?>> iterator()
      Specified by:
      iterator in interface Iterable<Region<?,?>>