Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.ibatis.sqlmap.engine.cache.oscache
Class OSCacheController  view OSCacheController download OSCacheController.java

java.lang.Object
  extended bycom.ibatis.sqlmap.engine.cache.oscache.OSCacheController
All Implemented Interfaces:
com.ibatis.sqlmap.engine.cache.CacheController

public class OSCacheController
extends java.lang.Object
implements com.ibatis.sqlmap.engine.cache.CacheController

Cache implementation for using OSCache with iBATIS


Field Summary
private static com.opensymphony.oscache.general.GeneralCacheAdministrator CACHE
           
 
Constructor Summary
OSCacheController()
           
 
Method Summary
 void configure(java.util.Properties props)
          Configure a cache controller
 void flush(com.ibatis.sqlmap.engine.cache.CacheModel cacheModel)
          Flush a cache model
 java.lang.Object getObject(com.ibatis.sqlmap.engine.cache.CacheModel cacheModel, java.lang.Object key)
          Get an object from a cache model
 void putObject(com.ibatis.sqlmap.engine.cache.CacheModel cacheModel, java.lang.Object key, java.lang.Object object)
          Put an object into a cache model
 java.lang.Object removeObject(com.ibatis.sqlmap.engine.cache.CacheModel cacheModel, java.lang.Object key)
          Remove an object from a cache model
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CACHE

private static final com.opensymphony.oscache.general.GeneralCacheAdministrator CACHE
Constructor Detail

OSCacheController

public OSCacheController()
Method Detail

flush

public void flush(com.ibatis.sqlmap.engine.cache.CacheModel cacheModel)
Description copied from interface: com.ibatis.sqlmap.engine.cache.CacheController
Flush a cache model

Specified by:
flush in interface com.ibatis.sqlmap.engine.cache.CacheController

getObject

public java.lang.Object getObject(com.ibatis.sqlmap.engine.cache.CacheModel cacheModel,
                                  java.lang.Object key)
Description copied from interface: com.ibatis.sqlmap.engine.cache.CacheController
Get an object from a cache model

Specified by:
getObject in interface com.ibatis.sqlmap.engine.cache.CacheController

removeObject

public java.lang.Object removeObject(com.ibatis.sqlmap.engine.cache.CacheModel cacheModel,
                                     java.lang.Object key)
Description copied from interface: com.ibatis.sqlmap.engine.cache.CacheController
Remove an object from a cache model

Specified by:
removeObject in interface com.ibatis.sqlmap.engine.cache.CacheController

putObject

public void putObject(com.ibatis.sqlmap.engine.cache.CacheModel cacheModel,
                      java.lang.Object key,
                      java.lang.Object object)
Description copied from interface: com.ibatis.sqlmap.engine.cache.CacheController
Put an object into a cache model

Specified by:
putObject in interface com.ibatis.sqlmap.engine.cache.CacheController

configure

public void configure(java.util.Properties props)
Description copied from interface: com.ibatis.sqlmap.engine.cache.CacheController
Configure a cache controller

Specified by:
configure in interface com.ibatis.sqlmap.engine.cache.CacheController