org.eclipse.higgins.cache.nocache
Class NOCache

java.lang.Object
  extended byorg.eclipse.higgins.cache.nocache.NOCache
All Implemented Interfaces:
ICache

public class NOCache
extends Object
implements ICache

Author:
Alexander Yuhimenko

Constructor Summary
NOCache()
           
 
Method Summary
 void clear()
          remove all objects from cache
 Object get(ICacheKey key)
           
 boolean isKeyInCache(ICacheKey key)
           
 void put(ICacheKey key, Object value)
          Put object
 void remove(ICacheKey key)
          If object exist remove it
 void update(ICacheKey key, Object value)
          Update or put object.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NOCache

public NOCache()
Method Detail

clear

public void clear()
           throws CacheException
Description copied from interface: ICache
remove all objects from cache

Specified by:
clear in interface ICache
Throws:
CacheException

get

public Object get(ICacheKey key)
           throws CacheException
Specified by:
get in interface ICache
Parameters:
key -
Returns:
object or null
Throws:
CacheException

put

public void put(ICacheKey key,
                Object value)
         throws CacheException
Description copied from interface: ICache
Put object

Specified by:
put in interface ICache
Parameters:
key -
value -
Throws:
CacheException

remove

public void remove(ICacheKey key)
            throws CacheException
Description copied from interface: ICache
If object exist remove it

Specified by:
remove in interface ICache
Parameters:
key -
Throws:
CacheException

update

public void update(ICacheKey key,
                   Object value)
            throws CacheException
Description copied from interface: ICache
Update or put object.

Specified by:
update in interface ICache
Parameters:
key -
value -
Throws:
CacheException

isKeyInCache

public boolean isKeyInCache(ICacheKey key)
                     throws CacheException
Specified by:
isKeyInCache in interface ICache
Parameters:
key -
Returns:
true if object exist else false
Throws:
CacheException