[Helma-user] markAsClean

Kris Leite kleite at imcsoftware.com
Mon May 5 03:49:04 CEST 2008


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.





More information about the Helma-user mailing list