gnu.caf.util
Class CafCacheManager

java.lang.Object
  extended by gnu.caf.util.CafCacheManager

public class CafCacheManager
extends java.lang.Object

캐쉬 유틸로 dbmanager-ehcache.xml 에 설정된 Cache 를 사용하기 위한 유틸클래스.

Author:
java3391

Method Summary
static java.util.List executeQueryGroupForList(java.lang.String dataCache, java.lang.String[] cacheExcludeParams, DBManager2 dbmanager, java.lang.String sqlFilename, java.lang.String sqlID, Attribute params)
           
static PagingList executeQueryGroupForPagingList(java.lang.String dataCache, java.lang.String totalCountCache, java.lang.String[] cacheExcludeParams, DBManager2 dbmanager, java.lang.String sqlFilename, java.lang.String sqlID, Attribute params, int pageNo, int pageSize)
           
static PagingList getDataCache(java.lang.String queryDataCacheName, java.lang.String key)
           
static net.sf.ehcache.CacheManager getInstance()
           
static gnu.caf.db.querymanager.QueryGroup getQueryGroup(java.lang.String key)
           
static void putDataCache(java.lang.String queryDataCacheName, java.lang.String key, java.io.Serializable obj)
           
static void putQueryGroup(java.lang.String key, java.io.Serializable obj)
           
static void removeAllDataCache(java.lang.String queryDataCacheName)
           
static void removeDataCache(java.lang.String queryDataCacheName, java.lang.String key)
           
static void removeQueryGroup(java.lang.String key)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getQueryGroup

public static gnu.caf.db.querymanager.QueryGroup getQueryGroup(java.lang.String key)

putQueryGroup

public static void putQueryGroup(java.lang.String key,
                                 java.io.Serializable obj)

removeQueryGroup

public static void removeQueryGroup(java.lang.String key)

getDataCache

public static PagingList getDataCache(java.lang.String queryDataCacheName,
                                      java.lang.String key)

putDataCache

public static void putDataCache(java.lang.String queryDataCacheName,
                                java.lang.String key,
                                java.io.Serializable obj)

removeDataCache

public static void removeDataCache(java.lang.String queryDataCacheName,
                                   java.lang.String key)

removeAllDataCache

public static void removeAllDataCache(java.lang.String queryDataCacheName)

getInstance

public static net.sf.ehcache.CacheManager getInstance()

executeQueryGroupForPagingList

public static PagingList executeQueryGroupForPagingList(java.lang.String dataCache,
                                                        java.lang.String totalCountCache,
                                                        java.lang.String[] cacheExcludeParams,
                                                        DBManager2 dbmanager,
                                                        java.lang.String sqlFilename,
                                                        java.lang.String sqlID,
                                                        Attribute params,
                                                        int pageNo,
                                                        int pageSize)
                                                 throws java.sql.SQLException
Throws:
java.sql.SQLException

executeQueryGroupForList

public static java.util.List executeQueryGroupForList(java.lang.String dataCache,
                                                      java.lang.String[] cacheExcludeParams,
                                                      DBManager2 dbmanager,
                                                      java.lang.String sqlFilename,
                                                      java.lang.String sqlID,
                                                      Attribute params)
                                               throws java.sql.SQLException
Throws:
java.sql.SQLException


Copyright © 2003 All Rights Reserved.