in reply to OO Perl & RDBMS Strategy Question
My usual apprach is to have value objects that can be loaded or saved to a datastore, ie:
$datastore->beginTransaction(); my $person = $datastore->getPersonById($personid); ...manipulate $person... $datastore->store($person); $datastore->commitTransaction();
The main advantages of this is:
I feel it's usually best to leave transaction management to the datastore, rather than trying to hack together something yourself.
-- Michael Snell
-- michael@snell.com
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: OO Perl & RDBMS Strategy Question
by prodevel (Scribe) on Aug 31, 2002 at 04:33 UTC | |
by diotalevi (Canon) on Oct 02, 2002 at 18:33 UTC |