Class EntityCache


  • public class EntityCache
    extends Object
    • Constructor Summary

      Constructors 
      Constructor Description
      EntityCache()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <T> T getById​(Class<T> type, Object id)  
      <T> T getOrSet​(EntityState state, org.springframework.data.relational.core.mapping.RelationalPersistentEntity<T> entity, org.springframework.data.mapping.PersistentPropertyAccessor<T> accessor, org.springframework.data.mapping.context.MappingContext<org.springframework.data.relational.core.mapping.RelationalPersistentEntity<?>,​? extends org.springframework.data.relational.core.mapping.RelationalPersistentProperty> mappingContext)
      Get it from cache or add it to cache.
      <T> void setById​(Class<T> type, Object id, T instance)  
    • Constructor Detail

      • EntityCache

        public EntityCache()
    • Method Detail

      • getById

        public <T> T getById​(Class<T> type,
                             Object id)
      • setById

        public <T> void setById​(Class<T> type,
                                Object id,
                                T instance)
      • getOrSet

        public <T> T getOrSet​(EntityState state,
                              org.springframework.data.relational.core.mapping.RelationalPersistentEntity<T> entity,
                              org.springframework.data.mapping.PersistentPropertyAccessor<T> accessor,
                              org.springframework.data.mapping.context.MappingContext<org.springframework.data.relational.core.mapping.RelationalPersistentEntity<?>,​? extends org.springframework.data.relational.core.mapping.RelationalPersistentProperty> mappingContext)
        Get it from cache or add it to cache.