Class DefaultCacheDistributionPolicy

    • Constructor Detail

      • DefaultCacheDistributionPolicy

        public DefaultCacheDistributionPolicy()
    • Method Detail

      • selectCache

        public String selectCache​(OpenJPAStateManager sm,
                                  Object context)
        Description copied from interface: CacheDistributionPolicy
        Selects the name of the cache where the given managed proxy object state be cached.
        Specified by:
        selectCache in interface CacheDistributionPolicy
        Parameters:
        sm - the managed proxy object to be cached. The actual managed instance can be accessed from the proxy instance simply as sm.getManagedInstance().
        context - the context of invocation. No specific semantics is attributed currently. Can be null.
        Returns:
        name of the cache or null, implying that that the instance should not be cached.