It all comes down to your preference, at the end of the day. I think your two choices make sense; the product thing is simple and you can just pass arguments around as necessary for the straightforward operations on the DB; the newsletter thing is more complex as we have the user data and the newsletter data - we've already discussed making the newsletter info an object in its own right that is a property of the user.
On 2/17/06, Aaron Roberson <[EMAIL PROTECTED]> wrote: > Let me try and put some feet on that. > > If I am creating a series of methods that all manipulate information > from a database such as product info, should I create a static of > instance method? The product methods would include inserting, > updating, deleting, and displaying a product and it's details. To me, > it seems like that would be a "service" type of action and not > something that would need to be instantiated, but that's just a guess. > > On the otherhand, I have a component with several methods that > manipulate data from a database such as users and user's newsletters, > shipping addres and billing address. The methods would insert, update, > delete and display user(s) and user details such as shipping info, > billing info, newsletter subscriptions, etc. This seems like it would > be an instance but I'm not sure why. -- CFAJAX docs and other useful articles: http://jr-holmes.coldfusionjournal.com/ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232665 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

