org.apache.ibatis.cache.decorators
Class LoggingCache

java.lang.Object
  extended by org.apache.ibatis.cache.decorators.LoggingCache
All Implemented Interfaces:
Cache

public class LoggingCache
extends Object
implements Cache


Field Summary
protected  int hits
           
protected  int requests
           
 
Constructor Summary
LoggingCache(Cache delegate)
           
 
Method Summary
 void clear()
           
 boolean equals(Object obj)
           
 String getId()
           
 Object getObject(Object key)
           
 ReadWriteLock getReadWriteLock()
           
 int getSize()
           
 int hashCode()
           
 void putObject(Object key, Object object)
           
 Object removeObject(Object key)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

requests

protected int requests

hits

protected int hits
Constructor Detail

LoggingCache

public LoggingCache(Cache delegate)
Method Detail

getId

public String getId()
Specified by:
getId in interface Cache

getSize

public int getSize()
Specified by:
getSize in interface Cache

putObject

public void putObject(Object key,
                      Object object)
Specified by:
putObject in interface Cache

getObject

public Object getObject(Object key)
Specified by:
getObject in interface Cache

removeObject

public Object removeObject(Object key)
Specified by:
removeObject in interface Cache

clear

public void clear()
Specified by:
clear in interface Cache

getReadWriteLock

public ReadWriteLock getReadWriteLock()
Specified by:
getReadWriteLock in interface Cache

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2010-2012 MyBatis.org. All Rights Reserved.