How to use TransactionDelegate to do audit logging?

From: Jeff de Vries (jdevrie..frog.com)
Date: Thu Sep 14 2006 - 06:20:52 EDT

  • Next message: Andrus Adamchik: "Re: DataContext.localObject() on uncommitted objects"

    I want to add a record to an audit table whenever certain objects are
    saved to the database. Based on earlier posts, I think I need to create
    a custom TransactionDelegate, and override didCommit() (or
    willCommit()). What I don't understand is how to access the objects
    that are going to be saved for this transaction so I can pull relevant
    information out for the audit record. Are there any examples of doing this?

    Thanks,
    Jeff de Vries



    This archive was generated by hypermail 2.0.0 : Thu Sep 14 2006 - 06:21:52 EDT