org.springframework.data.gemfire.repository.query
Class DefaultGemfireEntityInformation<T,ID extends Serializable>

java.lang.Object
  extended by org.springframework.data.repository.core.support.DelegatingEntityInformation<T,ID>
      extended by org.springframework.data.gemfire.repository.query.DefaultGemfireEntityInformation<T,ID>
All Implemented Interfaces:
GemfireEntityInformation<T,ID>, org.springframework.data.repository.core.EntityInformation<T,ID>, org.springframework.data.repository.core.EntityMetadata<T>

public class DefaultGemfireEntityInformation<T,ID extends Serializable>
extends org.springframework.data.repository.core.support.DelegatingEntityInformation<T,ID>
implements GemfireEntityInformation<T,ID>

Implementation of GemfireEntityInformation using reflection to lookup region names.


Constructor Summary
DefaultGemfireEntityInformation(GemfirePersistentEntity<T> entity)
          Creates a new DefaultGemfireEntityInformation.
 
Method Summary
 String getRegionName()
          Returns the name of the Region the entity is held in.
 
Methods inherited from class org.springframework.data.repository.core.support.DelegatingEntityInformation
getId, getIdType, getJavaType, isNew
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.springframework.data.repository.core.EntityInformation
getId, getIdType, isNew
 
Methods inherited from interface org.springframework.data.repository.core.EntityMetadata
getJavaType
 

Constructor Detail

DefaultGemfireEntityInformation

public DefaultGemfireEntityInformation(GemfirePersistentEntity<T> entity)
Creates a new DefaultGemfireEntityInformation.

Parameters:
entity - must not be null.
Method Detail

getRegionName

public String getRegionName()
Description copied from interface: GemfireEntityInformation
Returns the name of the Region the entity is held in.

Specified by:
getRegionName in interface GemfireEntityInformation<T,ID extends Serializable>
Returns:
the name of the Region the entity is held in.