[Helma-user] Suggestion: onPersist function call

Hannes Wallnoefer hannesw at gmail.com
Tue Apr 3 22:57:25 CEST 2007


Hi Kris,

2007/4/3, Kris Leite <kleite at imcsoftware.com>:
> 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
> Helma-user at helma.org
> http://helma.org/mailman/listinfo/helma-user
>


More information about the Helma-user mailing list