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

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

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

Perrin> You've already eaten your cake, so now you can't have it.  If you tell
Perrin> Class::DBI you're going to be storing Time::Piece objects there, you
Perrin> have to actually give it Time::Piece objects.

Perrin> The simplest thing is to use Time::Piece->strptime() to make them on the
Perrin> fly.  Anything else probably means rolling your own version of has_a().

Well, I have Time::Piece in there only because it looked like the only
way to get those other two triggers.

What I *really* want is:

        call X when you go from user to object
        call Y when you go from object to database
        call Z when you go from database to object

How do I say that?

And, ideally, I'd also like (but I can live without):

        call W when you go from object to user

        -- 
        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) 21:41 on 03 Dec 2004

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