com.jdon.domain.model.cache
类 ModelManagerImp

java.lang.Object
  继承者 com.jdon.domain.model.cache.ModelManagerImp
所有已实现的接口:
ModelManager

public class ModelManagerImp
extends Object
implements ModelManager

ModelManager implemention

作者:
banq

字段摘要
static String module
           
 
构造方法摘要
ModelManagerImp(ModelCacheManager modelCacheManager, ModelProxyInjection modelProxyInjection, ModelAdvisor modelAdvisor)
           
 
方法摘要
 Object addCache(ModelKey modelKey, Object model)
          add the model to the cache
 void addCache(Object key, String className, Object model)
          add the model to the cache
 void clearCache()
          clear all models in the cache.
 boolean containInCache(ModelKey modelKey)
           
 Object getCache(ModelKey modelKey)
          get the model instance from the cache
 Object getCache(Object key, String className)
          get the model instance from the cache
 boolean isNull(String s)
           
 void removeCache(Object dataKey)
          remove the model instance from the cache
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

module

public static final String module
构造方法详细信息

ModelManagerImp

public ModelManagerImp(ModelCacheManager modelCacheManager,
                       ModelProxyInjection modelProxyInjection,
                       ModelAdvisor modelAdvisor)
方法详细信息

addCache

public Object addCache(ModelKey modelKey,
                       Object model)
add the model to the cache

指定者:
接口 ModelManager 中的 addCache
参数:
modelKey -
model -
返回:
a saved cache model, maybe is not different from old model object

addCache

public void addCache(Object key,
                     String className,
                     Object model)
add the model to the cache

指定者:
接口 ModelManager 中的 addCache

getCache

public Object getCache(ModelKey modelKey)
get the model instance from the cache

指定者:
接口 ModelManager 中的 getCache

getCache

public Object getCache(Object key,
                       String className)
get the model instance from the cache

指定者:
接口 ModelManager 中的 getCache

removeCache

public void removeCache(Object dataKey)
                 throws Exception
remove the model instance from the cache

指定者:
接口 ModelManager 中的 removeCache
抛出:
Exception

clearCache

public void clearCache()
clear all models in the cache.

指定者:
接口 ModelManager 中的 clearCache

isNull

public boolean isNull(String s)

containInCache

public boolean containInCache(ModelKey modelKey)
指定者:
接口 ModelManager 中的 containInCache


Copyright © 2013. All Rights Reserved.