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

Quick Search    Search Deep

com.ibatis.sqlmap.engine.cache.memory
Class MemoryCacheController  view MemoryCacheController download MemoryCacheController.java

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

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

Memory-based implementation of CacheController


Nested Class Summary
private static class MemoryCacheController.StrongReference
          Class to implement a strong (permanent) reference.
 
Field Summary
private  java.util.Map cache
           
private  MemoryCacheLevel cacheLevel
           
 
Constructor Summary
MemoryCacheController()
           
 
Method Summary
 void configure(java.util.Properties props)
          Configures the cache
 void flush(com.ibatis.sqlmap.engine.cache.CacheModel cacheModel)
          Flushes the cache.
 java.lang.Object getObject(com.ibatis.sqlmap.engine.cache.CacheModel cacheModel, java.lang.Object key)
          Get an object out of the cache.
 void putObject(com.ibatis.sqlmap.engine.cache.CacheModel cacheModel, java.lang.Object key, java.lang.Object value)
          Add an object to the cache
 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

cacheLevel

private MemoryCacheLevel cacheLevel

cache

private java.util.Map cache
Constructor Detail

MemoryCacheController

public MemoryCacheController()
Method Detail

configure

public void configure(java.util.Properties props)
Configures the cache

Specified by:
configure 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 value)
Add an object to the cache

Specified by:
putObject 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)
Get an object out of the cache.

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

flush

public void flush(com.ibatis.sqlmap.engine.cache.CacheModel cacheModel)
Flushes the cache.

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