Class GemfireCacheUtils

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

public abstract class GemfireCacheUtils extends Object
Abstract utility class featuring methods for Apache Geode / Pivotal GemFire Cache or Region handling.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.springframework.dao.DataAccessException
    convertGemfireAccessException(org.apache.geode.cache.query.IndexInvalidException cause)
    Converts the given (unchecked) Gemfire exception to an appropriate one from the org.springframework.dao hierarchy.
    static org.springframework.dao.DataAccessException
    convertGemfireAccessException(org.apache.geode.cache.query.QueryInvalidException cause)
    Converts the given (unchecked) Gemfire exception to an appropriate one from the org.springframework.dao hierarchy.
    static org.springframework.dao.DataAccessException
    convertGemfireAccessException(org.apache.geode.GemFireCheckedException cause)
    Converts the given (checked) Gemfire exception to an appropriate one from the org.springframework.dao hierarchy.
    static org.springframework.dao.DataAccessException
    convertGemfireAccessException(org.apache.geode.GemFireException cause)
    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 Details

    • GemfireCacheUtils

      public GemfireCacheUtils()
  • Method Details

    • convertGemfireAccessException

      public static org.springframework.dao.DataAccessException convertGemfireAccessException(org.apache.geode.GemFireException cause)
      Converts the given (unchecked) Gemfire exception to an appropriate one from the org.springframework.dao hierarchy.
      Parameters:
      cause - Gemfire unchecked exception
      Returns:
      new the corresponding DataAccessException instance
    • convertGemfireAccessException

      public static org.springframework.dao.DataAccessException convertGemfireAccessException(org.apache.geode.GemFireCheckedException cause)
      Converts the given (checked) Gemfire exception to an appropriate one from the org.springframework.dao hierarchy.
      Parameters:
      cause - Gemfire unchecked exception
      Returns:
      new the corresponding DataAccessException instance
    • convertGemfireAccessException

      public static org.springframework.dao.DataAccessException convertGemfireAccessException(org.apache.geode.cache.query.IndexInvalidException cause)
      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:
      cause - Gemfire unchecked exception
      Returns:
      new the corresponding DataAccessException instance
    • convertGemfireAccessException

      public static org.springframework.dao.DataAccessException convertGemfireAccessException(org.apache.geode.cache.query.QueryInvalidException cause)
      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:
      cause - Gemfire unchecked exception
      Returns:
      new the corresponding DataAccessException instance