Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

Re: (Ovid) Re: Re: Refactor method calls or not?

by perrin (Chancellor)
on Jan 19, 2002 at 01:26 UTC ( #139954=note: print w/replies, xml ) Need Help??

in reply to (Ovid) Re: Re: Refactor method calls or not?
in thread Refactor method calls or not?

I've had the same thoughts about this. However, to make database commits you have to know the big picture, and your data access objects don't.

One approach would be to make a set of "action" objects that are allowed to manage transactions and call the data objects, but have no web-specific code in them. This would be similar to what the Java folks call a "session facade". In Java this is done because EJB performance sucks rocks, but in this case it would simply be an organizational tool.

  • Comment on Re: (Ovid) Re: Re: Refactor method calls or not?

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://139954]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2021-04-23 00:20 GMT
Find Nodes?
    Voting Booth?

    No recent polls found