On 12/18/07 1:38 AM, Danny Liang wrote:
> Is it possible to add triggers/coderef callbacks to
> load/insert/update/delete methods for objects and get_* methods for
> object manager classes similar to the way adding trigger to columns
> (i.e. on_set, on_save, etc.)?

There are no convenience methods for that, but you can always do it the
old-fashioned way:

sub save
{
  my($self) = $_[0];

  # Do my custom stuff here

  return shift->SUPER::save(@_);
}

Also, be sure to read the "SUBCLASS NOTE" here:

http://search.cpan.org/dist/Rose-DB-Object/lib/Rose/DB/Object.pm#load

-John



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Rose-db-object mailing list
Rose-db-object@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rose-db-object

Reply via email to