nl.gx.webmanager.services.entitymanager
Interface EntityCache


public interface EntityCache

Session interface for entitymanagement. Basicly provides an entity cache for this Session.

Author:
bramk

Method Summary
 void addEntityToCache(java.lang.Object entity)
          Stores an entity in the cache.
 java.lang.Object getEntityFromCache(WmId id)
          Looks up an entity by id in the cache.
 void removeEntityFromCache(java.lang.Object entity)
          Removes an entity from the cache.
 

Method Detail

getEntityFromCache

java.lang.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(java.lang.Object entity)
Stores an entity in the cache.

Parameters:
entity - the entity to store in the cache

removeEntityFromCache

void removeEntityFromCache(java.lang.Object entity)
Removes an entity from the cache.

Parameters:
entity - the entity to be removed from the cache


Copyright © 2007-2011 GX Software BV. All Rights Reserved.