Interface EntityCache


  • public interface EntityCache
    Session interface for entitymanagement. Basicly provides an entity cache for this Session.
    Author:
    bramk
    • Method Detail

      • getEntityFromCache

        Object getEntityFromCache​(WmId id)
        Looks up an entity by id in the cache.
        Parameters:
        id - the id of the entity to retrieve
        Returns:
        the entity corresponding to the specified id or null if it wasn't found in the cache
      • addEntityToCache

        void addEntityToCache​(Object entity)
        Stores an entity in the cache.
        Parameters:
        entity - the entity to store in the cache
      • removeEntityFromCache

        void removeEntityFromCache​(Object entity)
        Removes an entity from the cache.
        Parameters:
        entity - the entity to be removed from the cache