Package org.springframework.data.gemfire
Class GemfireAccessor
java.lang.Object
org.springframework.data.gemfire.GemfireAccessor
- All Implemented Interfaces:
InitializingBean
- Direct Known Subclasses:
GemfireTemplate
GemfireAccessor
is a base class for GemfireTemplate
to encapsulate common operations and properties,
such as accessors to a Region
.
This class is not intended to be used directly.- Author:
- Costin Leau, John Blum
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Converts the givenGemFireCheckedException
to an appropriate exception from theorg.springframework.dao
hierarchy.Converts the givenGemFireException
to an appropriate exception from theorg.springframework.dao
hierarchy.Converts the given GemFire exception to an appropriate exception from theorg.springframework.dao
hierarchy.<K,
V> Region<K, V> Returns the template GemFire Cache Region.void
Sets the template GemFire Cache Region.
-
Field Details
-
logger
protected final org.slf4j.Logger logger
-
-
Constructor Details
-
GemfireAccessor
public GemfireAccessor()
-
-
Method Details
-
getRegion
Returns the template GemFire Cache Region.- Type Parameters:
K
- the Region key class type.V
- the Region value class type.- Returns:
- the GemFire Cache Region.
- See Also:
-
setRegion
Sets the template GemFire Cache Region.- Parameters:
region
- the GemFire Cache Region used by this template.- See Also:
-
afterPropertiesSet
public void afterPropertiesSet()- Specified by:
afterPropertiesSet
in interfaceInitializingBean
-
convertGemFireAccessException
Converts the givenGemFireCheckedException
to an appropriate exception from theorg.springframework.dao
hierarchy. May be overridden in subclasses.- Parameters:
ex
- GemFireCheckedException that occurred- Returns:
- the corresponding DataAccessException instance
-
convertGemFireAccessException
Converts the givenGemFireException
to an appropriate exception from theorg.springframework.dao
hierarchy. May be overridden in subclasses.- Parameters:
ex
- GemFireException that occurred- Returns:
- the corresponding DataAccessException instance
-
convertGemFireQueryException
Converts the given GemFire exception to an appropriate exception from theorg.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.- Parameters:
ex
- GemFireException that occurred- Returns:
- the corresponding DataAccessException instance
-