Re: missing the point about mapping from database to object to external rep

[prev] [thread] [next] [Date index for 2004/12/05]

From: merlyn (Randal L. Schwartz)
Subject: Re: missing the point about mapping from database to object to external rep
Date: 19:46 on 05 Dec 2004
>>>>> "Perrin" == Perrin Harkins <perrin@xxxx.xxx> writes:

Perrin> I see what you're asking for.  Class::DBI is all about working with your
Perrin> data as objects, so it is geared toward inflate/deflate for that use.
Perrin> To do transformations on data without using objects, I would either
Perrin> create triggers the same way has_a() does, or just wrap the get/set with
Perrin> my own custom methods.

But I don't see the right triggers to do what I want.

before_set_$column appears to have a read-only-view.  And I don't see
what trigger is used before an object is written into the database.

        -- 
        Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@xxxxxxxxxx.xxx> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!

(message missing)

missing the point about mapping from database to object to external rep
merlyn (Randal L. Schwartz) 21:29 on 03 Dec 2004

Re: missing the point about mapping from database to object to external rep
merlyn (Randal L. Schwartz) 19:46 on 05 Dec 2004

Generated at 15:37 on 08 Dec 2004 by mariachi v0.52