com.jdon.controller.model
接口 ModelIF

所有超级接口:
Cacheable, Cloneable, Serializable
所有已知实现类:
DynamicModel, Model, ModelProxyWrapper

public interface ModelIF
extends Cacheable, Cloneable, Serializable

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.

作者:
banq
另请参见:
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); }
 

方法详细信息

isCacheable

boolean isCacheable()
in the past version, this method name is isCacheble, now change it after 1.3 !

指定者:
接口 Cacheable 中的 isCacheable

setCacheable

void setCacheable(boolean cacheable)
in the past version, this method name is setCacheble, now change it after 1.3 !

指定者:
接口 Cacheable 中的 setCacheable

isModified

boolean isModified()

setModified

void setModified(boolean modified)
set the property has been modified such as : setName(String name){ this.name = name; setModified(true); }



Copyright © 2013. All Rights Reserved.