Re: Suggestion: onPersist function call
"Hannes Wallnoefer" <[email protected]>
| Newsgroups | gmane.comp.java.helma.general |
|---|---|
| Message-ID | <[email protected]> |
Hi Kris, 2007/4/3, Kris Leite <[email protected]>: > I had a need to do some changes on a HopObject before it was > written into storage. So I made a customized version Helma 1.5.3 > to call 'onPersist' function when a HopObject was being written > into the embedded or relational database. > > It would be nice if this was added as a new feature for Helma 1.6. > > The way I implemented it was very similar to the 'onInit()' function > by making a copy of the "invokeOnInit" function in Node.java > and changing the names to 'OnPersist' then adding a call to > 'invokeOnPersist' in the NodeManager methods 'insertNode' and > 'updateNode'. > > I will be happy to provide the patches if you like. Yes, please send a patch. hannes > Thanks, > Kris > > > _______________________________________________ > Helma-user mailing list > [email protected] > http://helma.org/mailman/listinfo/helma-user >