« Return to Thread: [Bug 648] New: Add onCommit hook

[Bug 648] Add onCommit hook

by Bugzilla from bugzilla-daemon@helma.at :: Rate this Message:

Reply to Author | View in Thread

http://helma.org/bugs/show_bug.cgi?id=648





------- Comment #3 from lists@...  2008-11-05 15:25 -------
I am using it to be notified that some fake properties that I install using
__define[GS]etter__ should set the native db fields internally, before the
object is commited. But for this feature, I realised it actually needs to be
called before all the dirty nodes are scanned and stored, otherwise the changes
in onCommit would actually not make it into the commit.

So maybe we could consider supporting two callbacks there: onBeforeCommit and
onCommit. onCommit could then receive all the updated, deleted, inserted nodes
as parameters.

What do you think?

When looking for this feature I realised that axiomstack already implemented it
in their fork:

http://file.axiomstack.com/public-bzr/stack-trunk/src/java/axiom/objectmodel/db/Transactor.java


--
Configure bugmail: http://helma.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
_______________________________________________
Helma-dev mailing list
Helma-dev@...
http://helma.org/mailman/listinfo/helma-dev

 « Return to Thread: [Bug 648] New: Add onCommit hook