|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectcom.jdon.controller.model.Model
public class Model
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.
| 构造方法摘要 | |
|---|---|
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 |
| 构造方法详细信息 |
|---|
public Model()
| 方法详细信息 |
|---|
public boolean isCacheable()
Cacheable 中的 isCacheableModelIF 中的 isCacheablepublic void setCacheable(boolean cacheable)
Cacheable 中的 setCacheableModelIF 中的 setCacheablepublic boolean isModified()
ModelIF 中的 isModifiedpublic void setModified(boolean modified)
ModelIF 中的 setModified
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||