Class ModelCache

  • Direct Known Subclasses:
    BeansModelCache

    public abstract class ModelCache
    extends Object
    Internally used by various wrapper implementations to implement model caching.
    • Constructor Detail

      • ModelCache

        protected ModelCache()
    • Method Detail

      • setUseCache

        public void setUseCache​(boolean useCache)
        Sets whether this wrapper caches model instances. Default is false. When set to true, calling getInstance(Object) multiple times for the same object will return the same model.
      • getUseCache

        public boolean getUseCache()
        Since:
        2.3.21
      • isCacheable

        protected abstract boolean isCacheable​(Object object)
      • clearCache

        public void clearCache()