Committing rolling back many objects at once?

[prev] [thread] [next] [Date index for 2005/01/20]

From: Peter Speltz
Subject: Committing rolling back many objects at once?
Date: 18:03 on 20 Jan 2005
Can you create many different objects then commit or roll back all or any of
them?

ex: my $person = Person->create( {...} );
    my $emp = Employee->create ({..., prsn_id => $person->id}); # maybe no pid
    ...
    if (! $errors) {
       $person->dbi_commit;
       $emp->dbi_commit;
    }
    else {
       $person->dbi_rollback;
       $emp->dbi_rollback;
    }

thanks

=====
pjs

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Committing rolling back many objects at once?
Peter Speltz 18:03 on 20 Jan 2005

Re: Committing rolling back many objects at once?
Perrin Harkins 18:06 on 20 Jan 2005

Re: Committing rolling back many objects at once?
Peter Speltz 18:15 on 20 Jan 2005

Re: Committing rolling back many objects at once?
Perrin Harkins 04:03 on 21 Jan 2005

RE: Committing rolling back many objects at once?
Addison, Mark 15:22 on 26 Jan 2005

RE: Committing rolling back many objects at once?
Peter Speltz 17:43 on 26 Jan 2005

Generated at 12:39 on 05 Feb 2005 by mariachi v0.52