Janet, Coupla points: 1. Just a little terminology thing - see http://java.sun.com/blueprints/patterns/SessionFacade.html - probably not what you mean, it's basically about reducing network traffic. 2. For DAOs - think dumb, dumb, dumb. This is the lowest level of code before you actually hit your database. If you want a given userID, just pass in the userID.
qryMyArticles = anArticleGateway.getByUserID(userID = session.siteUser.getID()); Jaime -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of J MacKay Sent: Friday, 30 March 2007 1:10 PM To: [email protected] Subject: RE: [CFCDEV] newbie: needs an opinion on component structure Jaime, If you have the time, maybe you can offer an opinion on a semi-related question .. Most of my application pages are very siteUser-centric. By that I mean they personalize or filter the information displayed based on id of the current user. In my database I have a siteUser table and most of the other objects have two standard columns: CreatedBy and ModifiedBy (FK - SiteUserID). So most of my Gateway/dao objects will need to know the current SiteUserID. I'm not sure what's the best way to handle it. The application uses a session variables to store the current user information (session.siteUser). So I was thinking of using a session facade (SiteUserFacade) and passing it into all of my Gateway/dao objects. But again... I'm not sure that's the way to go. Any thoughts or opinions would be appreciated. Janet -- ---------------------------------------------------------------------------- -- Sucker-punch spam with award-winning protection. Try the free Yahoo! Mail Beta. You are subscribed to cfcdev. To unsubscribe, please follow the instructions at http://www.cfczone.org/listserv.cfm CFCDev is supported by: Katapult Media, Inc. We are cool code geeks looking for fun projects to rock! www.katapultmedia.com An archive of the CFCDev list is available at www.mail-archive.com/[email protected] You are subscribed to cfcdev. To unsubscribe, please follow the instructions at http://www.cfczone.org/listserv.cfm CFCDev is supported by: Katapult Media, Inc. We are cool code geeks looking for fun projects to rock! www.katapultmedia.com An archive of the CFCDev list is available at www.mail-archive.com/[email protected]
