public class GemfireAccessor extends Object implements InitializingBean
Region.
Not intended to be used directly.InitializingBean,
Region| Modifier and Type | Field and Description |
|---|---|
protected org.apache.commons.logging.Log |
log |
| Constructor and Description |
|---|
GemfireAccessor() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
DataAccessException |
convertGemFireAccessException(com.gemstone.gemfire.GemFireCheckedException ex)
Converts the given
GemFireCheckedException to an appropriate exception from the
org.springframework.dao hierarchy. |
DataAccessException |
convertGemFireAccessException(com.gemstone.gemfire.GemFireException ex)
Converts the given
GemFireException to an appropriate exception from the
org.springframework.dao hierarchy. |
DataAccessException |
convertGemFireQueryException(RuntimeException ex)
Converts the given GemFire exception to an appropriate exception from the
org.springframework.dao hierarchy. |
<K,V> com.gemstone.gemfire.cache.Region<K,V> |
getRegion()
Returns the template GemFire Cache Region.
|
void |
setRegion(com.gemstone.gemfire.cache.Region<?,?> region)
Sets the template GemFire Cache Region.
|
public <K,V> com.gemstone.gemfire.cache.Region<K,V> getRegion()
K - the Region key class type.V - the Region value class type.Regionpublic void setRegion(com.gemstone.gemfire.cache.Region<?,?> region)
region - the GemFire Cache Region used by this template.Regionpublic void afterPropertiesSet()
afterPropertiesSet in interface InitializingBeanpublic DataAccessException convertGemFireAccessException(com.gemstone.gemfire.GemFireCheckedException ex)
GemFireCheckedException to an appropriate exception from the
org.springframework.dao hierarchy.
May be overridden in subclasses.ex - GemFireCheckedException that occurredpublic DataAccessException convertGemFireAccessException(com.gemstone.gemfire.GemFireException ex)
GemFireException to an appropriate exception from the
org.springframework.dao hierarchy.
May be overridden in subclasses.ex - GemFireException that occurredpublic DataAccessException convertGemFireQueryException(RuntimeException ex)
org.springframework.dao hierarchy. Note that this particular implementation
is called only for GemFire querying exception that do NOT extend from GemFire exception.
May be overridden in subclasses.ex - GemFireException that occurred