|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object egovframework.rfc3.common.cache.EhCacheController
public class EhCacheController
EhCache Implementation of the CacheController
interface to be able to use
EhCache as a cache implementation in iBatis. You can configure your cache model as follows, by example, in your
sqlMapping files:
<cacheModel id="myCache" type="nl.rabobank.springproject.ibatis.EhCacheController" readOnly="true" serialize="false">
<property name="configFile" value="/path-to-ehcache.xml"/>
</cacheModel>
Alternatively, you can use a type alias in your type attribute and defining the class with a
<TypeAlias> declaration, see iBatis documentation on how to do this.
Constructor Summary | |
---|---|
EhCacheController()
|
Method Summary | |
---|---|
void |
finalize()
Shut down the EH Cache CacheManager. |
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. |
void |
setProperties(java.util.Properties props)
Configure a cache controller. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EhCacheController()
Method Detail |
---|
public void flush(com.ibatis.sqlmap.engine.cache.CacheModel cacheModel)
flush
in interface com.ibatis.sqlmap.engine.cache.CacheController
cacheModel
- - the model to flush.public java.lang.Object getObject(com.ibatis.sqlmap.engine.cache.CacheModel cacheModel, java.lang.Object key)
getObject
in interface com.ibatis.sqlmap.engine.cache.CacheController
cacheModel
- - the model.key
- - the key to the object.
public void putObject(com.ibatis.sqlmap.engine.cache.CacheModel cacheModel, java.lang.Object key, java.lang.Object object)
putObject
in interface com.ibatis.sqlmap.engine.cache.CacheController
cacheModel
- - the model to add the object to.key
- - the key to the object.object
- - the object to add.public java.lang.Object removeObject(com.ibatis.sqlmap.engine.cache.CacheModel cacheModel, java.lang.Object key)
removeObject
in interface com.ibatis.sqlmap.engine.cache.CacheController
cacheModel
- - the model to remove the object from.key
- - the key to the object.
public void setProperties(java.util.Properties props)
setProperties
in interface com.ibatis.sqlmap.engine.cache.CacheController
props
- - the properties object continaing configuration information.public void finalize()
finalize
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |