[Catalyst] Where is the DAO equivalent?

Johannes Plunien plu at pqpq.de
Wed May 27 19:24:59 GMT 2009


On 27.05.2009, at 18:59, Jarom Smith wrote:

> So, my question is: In a Catalyst context, where do I put these  
> kinds of "helper" DB methods and how do I access them? (both from  
> within a Catalyst app, as well as from the command-line like in a  
> Cron job or whatever...)  Some actual specific examples would be  
> great.  I'm sure there is a way, and I'm guessing it involves the  
> model somehow (possibly by creating a new model class?) but I  
> haven't been able to figure it out yet.  I tried adding methods to  
> the classes created by Catalyst/DBIC in the Schema/Result directory,  
> but gradually it dawned on me that methods placed here are only  
> dealing with a single entity of that type.  To go back to Java- 
> speak, it seems like the stuff in Schema/Result are DTO methods;  
> what I'm trying to figure out is how/where to put the DAO methods.

http://www.pqpq.de/mt/2009/05/catalyst-dbic-dao.html

Cheers,
plu

--
Johannes Plunien | mailto:plu at pqpq.de | http://www.pqpq.de/contact/

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2436 bytes
Desc: not available
Url : http://lists.scsys.co.uk/pipermail/catalyst/attachments/20090527/0ad60eac/smime.bin


More information about the Catalyst mailing list