org.springframework.data.gemfire
Class GemfireCacheUtils

java.lang.Object
  extended by org.springframework.data.gemfire.GemfireCacheUtils

public abstract class GemfireCacheUtils
extends Object

Helper class featuring methods for GemFire Cache or Region handling.

Author:
Costin Leau

Constructor Summary
GemfireCacheUtils()
           
 
Method Summary
static DataAccessException convertGemfireAccessException(GemFireCheckedException ex)
          Converts the given (checked) Gemfire exception to an appropriate one from the org.springframework.dao hierarchy.
static DataAccessException convertGemfireAccessException(GemFireException ex)
          Converts the given (unchecked) Gemfire exception to an appropriate one from the org.springframework.dao hierarchy.
static DataAccessException convertGemfireAccessException(IndexInvalidException ex)
          Converts the given (unchecked) Gemfire exception to an appropriate one from the org.springframework.dao hierarchy.
static DataAccessException convertGemfireAccessException(QueryInvalidException ex)
          Converts the given (unchecked) Gemfire exception to an appropriate one from the org.springframework.dao hierarchy.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GemfireCacheUtils

public GemfireCacheUtils()
Method Detail

convertGemfireAccessException

public static DataAccessException convertGemfireAccessException(GemFireException ex)
Converts the given (unchecked) Gemfire exception to an appropriate one from the org.springframework.dao hierarchy.

Parameters:
ex - Gemfire unchecked exception
Returns:
new the corresponding DataAccessException instance

convertGemfireAccessException

public static DataAccessException convertGemfireAccessException(GemFireCheckedException ex)
Converts the given (checked) Gemfire exception to an appropriate one from the org.springframework.dao hierarchy.

Parameters:
ex - Gemfire unchecked exception
Returns:
new the corresponding DataAccessException instance

convertGemfireAccessException

public static DataAccessException convertGemfireAccessException(IndexInvalidException ex)
Converts the given (unchecked) Gemfire exception to an appropriate one from the org.springframework.dao hierarchy. This method exists to handle backwards compatibility for exceptions that had their parents changed in GemFire 6.5.

Parameters:
ex - Gemfire unchecked exception
Returns:
new the corresponding DataAccessException instance

convertGemfireAccessException

public static DataAccessException convertGemfireAccessException(QueryInvalidException ex)
Converts the given (unchecked) Gemfire exception to an appropriate one from the org.springframework.dao hierarchy. This method exists to handle backwards compatibility for exceptions that had their parents changed in GemFire 6.5.

Parameters:
ex - Gemfire unchecked exception
Returns:
new the corresponding DataAccessException instance


Copyright © 2010 SpringSource, a division of VMware. All Rights Reserved.