org.apache.ibatis.cache.decorators
Class TransactionalCache

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

public class TransactionalCache
extends Object
implements Cache


Constructor Summary
TransactionalCache(Cache delegate)
           
 
Method Summary
 void clear()
           
 void commit()
           
 String getId()
           
 Object getObject(Object key)
           
 ReadWriteLock getReadWriteLock()
           
 int getSize()
           
 void putObject(Object key, Object object)
           
 Object removeObject(Object key)
           
 void rollback()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransactionalCache

public TransactionalCache(Cache delegate)
Method Detail

getId

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

getSize

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

getObject

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

getReadWriteLock

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

putObject

public void putObject(Object key,
                      Object object)
Specified by:
putObject 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

commit

public void commit()

rollback

public void rollback()


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