|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.clients.util.PersistableItem
Parent class for client items which contain persistable items. This class keeps track of modified and created items, and knows how to save and refresh those items.
Field Summary | |
(package private) boolean |
created
|
(package private) boolean |
modified
|
Constructor Summary | |
PersistableItem()
|
Method Summary | |
boolean |
isCreated()
Returns true if this object is created, else false. |
boolean |
isModified()
Returns true if this object is modified, else false. |
void |
refresh()
Refreshes the object to it's database state. |
void |
save()
Saves the object. |
void |
setCreated(boolean created)
Sets the created flag on this object. |
void |
setModified(boolean modified)
Sets the modified flag on this object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
boolean created
boolean modified
Constructor Detail |
public PersistableItem()
Method Detail |
public void save() throws WTException
WTException
- if the save failspublic void refresh() throws WTException
WTException
- if the refresh failspublic boolean isModified()
public void setModified(boolean modified)
modified
- true if modified, else false.public boolean isCreated()
public void setCreated(boolean created)
created
- true if created, else false.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |