org.javalite.activejdbc.cache
Class EHCacheManager

java.lang.Object
  extended by org.javalite.activejdbc.cache.CacheManager
      extended by org.javalite.activejdbc.cache.EHCacheManager

public class EHCacheManager
extends CacheManager

Author:
Igor Polevoy

Constructor Summary
EHCacheManager()
           
 
Method Summary
 void addCache(String group, String key, Object cache)
          Adds item to cache.
 void doFlush(CacheEvent event)
           
 Object getCache(String group, String key)
          Returns a cached item.
 
Methods inherited from class org.javalite.activejdbc.cache.CacheManager
addCacheEventListener, flush, removeAllCacheEventListeners, removeCacheEventListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EHCacheManager

public EHCacheManager()
Method Detail

getCache

public Object getCache(String group,
                       String key)
Description copied from class: CacheManager
Returns a cached item. Can return null if not found.

Specified by:
getCache in class CacheManager
Parameters:
group - group of caches - this is a name of a table for which query results are cached
key - key of the item.
Returns:
a cached item. Can return null if not found.

addCache

public void addCache(String group,
                     String key,
                     Object cache)
Description copied from class: CacheManager
Adds item to cache.

Specified by:
addCache in class CacheManager
Parameters:
group - group name of cache.
key - key of the item.
cache - cache item to add to cache.

doFlush

public void doFlush(CacheEvent event)
Specified by:
doFlush in class CacheManager


Copyright © 2015 JavaLite. All rights reserved.