In my version the order object also serves as an iterator for the order
items which I believe is similar to the collection you suggest. Is it right
to, or what are the benefits of creating a collection instead?

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Kwang Suh
Sent: Wednesday, May 25, 2005 11:37 AM
To: [email protected]
Subject: Re: [CFCDev] object composition - which method is better in
coldfusion?

I'd make another class called OrderItemCollection that would hold a
collection of orderItems.

----- Original Message -----
From: Joe Ferraro <[EMAIL PROTECTED]>
Date: Wednesday, May 25, 2005 9:24 am
Subject: [CFCDev] object composition - which method is better in coldfusion?

> I have an order object, in ColdFusion which method is better for 
> compositionof this object.
> 
> 
> 
> Attribute orderItems - array of structures
> 
> 
> 
> Or 
> 
> 
> 
> Attribute orderItems - array of orderItem objects
> 
> 
> 
> The average number of order items is 3 and with an occasional high 
> of 20.
> 
> 
> 
> What are your thoughts?
> 
> 
> 
> 
> ----------------------------------------------------------
> You are subscribed to cfcdev. To unsubscribe, send an email to 
> [email protected] with the words 'unsubscribe cfcdev' as the 
> subject of the email.
> 
> CFCDev is run by CFCZone (www.cfczone.org) and supported by 
> CFXHosting (www.cfxhosting.com).
> 
> CFCDev is supported by New Atlanta, makers of BlueDragon
> http://www.newatlanta.com/products/bluedragon/index.cfm
> 
> An archive of the CFCDev list is available at www.mail-
> archive.com/[email protected]



----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to
[email protected] with the words 'unsubscribe cfcdev' as the subject of the
email.

CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting
(www.cfxhosting.com).

CFCDev is supported by New Atlanta, makers of BlueDragon
http://www.newatlanta.com/products/bluedragon/index.cfm

An archive of the CFCDev list is available at
www.mail-archive.com/[email protected]





----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to 
[email protected] with the words 'unsubscribe cfcdev' as the subject of the 
email.

CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting 
(www.cfxhosting.com).

CFCDev is supported by New Atlanta, makers of BlueDragon
http://www.newatlanta.com/products/bluedragon/index.cfm

An archive of the CFCDev list is available at 
www.mail-archive.com/[email protected]


Reply via email to