com.ibatis.sqlmap.engine.cache

Interface CacheController

public interface CacheController

Cache controller (implementation) interface
Method Summary
voidflush(CacheModel cacheModel)
Flush a cache model
ObjectgetObject(CacheModel cacheModel, Object key)
Get an object from a cache model
voidputObject(CacheModel cacheModel, Object key, Object object)
Put an object into a cache model
ObjectremoveObject(CacheModel cacheModel, Object key)
Remove an object from a cache model
voidsetProperties(Properties props)
Configure a cache controller

Method Detail

flush

public void flush(CacheModel cacheModel)
Flush a cache model

Parameters: cacheModel - the model to flush

getObject

public Object getObject(CacheModel cacheModel, Object key)
Get an object from a cache model

Parameters: cacheModel - the model key - the key to the object

Returns: the object if in the cache, or null(?)

putObject

public void putObject(CacheModel cacheModel, Object key, Object object)
Put an object into a cache model

Parameters: cacheModel - the model to add the object to key - the key to the object object - the object to add

removeObject

public Object removeObject(CacheModel cacheModel, Object key)
Remove an object from a cache model

Parameters: cacheModel - the model to remove the object from key - the key to the object

Returns: the removed object(?)

setProperties

public void setProperties(Properties props)
Configure a cache controller

Parameters: props - the properties object continaing configuration information

Copyright © 2011. All Rights Reserved.