markAsClean
Kris Leite <[email protected]> Sun, 04 May 2008 18:49:04 -0700
| Newsgroups | gmane.comp.java.helma.general |
|---|---|
| Message-ID | <[email protected]> |
I was using onInit function call to create some new fields in a HopObject. When doing that, Helma will mark the node as dirty. I needed a method of reseting the node as clean so that unnecessary updates to the data base was not done. So I created a new HopObject function call 'markAsClean' that can be called to remove the node from the dirty list. Other people may find this a useful feature also so I would like to suggest that it be considered for implementation into Helma. Thanks, Kris PS - I am aware of the cache feature to allow storing fields into the HopObject for temporary storage. In my case, it was much better to create HopObject fields with default values. If the user changed the default values, then they are stored. If nothing was entered, then the default values are not stored reducing storage overhead.