|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
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.
| Constructor Summary | |
|---|---|
Model()
|
|
| Method Summary | |
|---|---|
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); } |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Model()
| Method Detail |
|---|
public boolean isCacheable()
isCacheable in interface CacheableisCacheable in interface ModelIFpublic void setCacheable(boolean cacheable)
setCacheable in interface CacheablesetCacheable in interface ModelIFpublic boolean isModified()
isModified in interface ModelIFpublic void setModified(boolean modified)
setModified in interface ModelIF
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||