Thank you James,

I think I might climb out of this one. Things are still a bit ethereal
in my mind but I think I am begining to grasp it much more now. I
would like to see a mock-up of the code inside the component using
srategy number 2. Perhaps some comments explaining the relationship
between the data in the psuedo-constructor with the set method and the
relationship between the set method and the insert method would help.
Of coarse, I can't expect anything since you have been entirely too
kind already to help me out thus far ;)

-Aaron

P.S. I have been studying up on CFC's and trying to write code for
about two-three weeks now and all I have is four, half-written
components. I don't think I would ever get this if I wasn't working on
it from 8-5 Monday thru Thursday and if I didn't have resources such
as this list, multiple tutorials, books, and a subscription to vtc.com
and communitymx.com.

On 2/16/06, James Holmes <[EMAIL PROTECTED]> wrote:
> 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:232667
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=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to