com.jdon.controller.model
类 Model

java.lang.Object
  继承者 com.jdon.controller.model.Model
所有已实现的接口:
Cacheable, ModelIF, Serializable, Cloneable
直接已知子类:
DynamicModel, ModelProxyWrapper

public class Model
extends Object
implements ModelIF

Base domain model it can be DTO or nested Model. it is the important message between business layer and view layer. in view layer, it is created by form object(such as ActionForm object);in business layer, it is created by business components(such as session bean). thi class can be cached, and setModified is important, this method can be used to refresh the cache. because setModified function ,so the class is designed for a class, but not a interface. the difference with setModified and setCacheable; setCacheable to false, the model will never exist in the cache. setModified to true, if the model exists in the cache, the client will not get it from cache, it is same as being deleted from 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
另请参见:
序列化表格

构造方法摘要
Model()
           
 
方法摘要
 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); }
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

Model

public Model()
方法详细信息

isCacheable

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

指定者:
接口 Cacheable 中的 isCacheable
指定者:
接口 ModelIF 中的 isCacheable

setCacheable

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

指定者:
接口 Cacheable 中的 setCacheable
指定者:
接口 ModelIF 中的 setCacheable

isModified

public boolean isModified()
指定者:
接口 ModelIF 中的 isModified

setModified

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

指定者:
接口 ModelIF 中的 setModified


Copyright © 2013. All Rights Reserved.