|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
public interface ModelIF
Domain Model should normal live in memory not in database. so cache in memory is very important for domain model life cycle. the class be cached or setModified is important, this method can be used to refresh the cache. the controller is in com.jdon.model.cache.ModelCacheManager the difference with setModified and setCacheable; setCacheable to false, the model will never be saved in the cache. setModified to true, if the model exists in the cache, the client will not get it from cache, and in the meantime framework delete the model from the cache. deleting the model from cache must have a condition that the deleting operator can access the cache of the container, if it cann't access the container, it cann't delete the model from cache. such it is EJB.
ModelCacheManager| 方法摘要 | |
|---|---|
boolean |
isCacheable()
in the past version, this method name is isCacheble, now change it after 1.3 ! |
boolean |
isModified()
|
void |
setCacheable(boolean cacheable)
in the past version, this method name is setCacheble, now change it after 1.3 ! |
void |
setModified(boolean modified)
set the property has been modified such as : setName(String name){ this.name = name; setModified(true); } |
| 方法详细信息 |
|---|
boolean isCacheable()
Cacheable 中的 isCacheablevoid setCacheable(boolean cacheable)
Cacheable 中的 setCacheableboolean isModified()
void setModified(boolean modified)
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||