Barry,

> I've identified a basic "task" object to turn into a CFC. But I was thinking
> of adding a "getAll()" and a "getAllByType(typeID)" to return collections of
> "tasks" (really just simple queries). At the moment I really only need the
> taskID and TaskName in the collections. I'm thinking back to my (now rusty)
> VB days and collections of objects.

Not quite sure what you are talking about doing - 

Let me get this right:

You want a CFC that returns a collection (some type) of queries out of a funtion call? 
Is that 
correct?

> should I extend the "task" CFC and have those collection methods as a
> seperate CFC or keep in the same as additional methods? 

Well I wouldn't 'extend' it, as it doesn't seem that this collection making CFC is 
really 
and 'extension' of a your 'task' cfc (if I got it right).  But I'm not really sure 
what you want to 
do.

> I want to add
> iterator and enum methods so I can loop over the collections easily eg:
> <cfloop condition="#obj.hasNext()#">, etc..
> any suggestions?

I would just ask - what's wrong with an array?
But on a theory level - no reason why you couldn't use the underlying Java collection 
classes - 
e.g. java.util.ArrayList ? which have Iterators built in already.

Did that help?

Mark

------------------------------------------------------------------
[EMAIL PROTECTED]
ICQ: 3094740
Safe From Bees
[ www.safefrombees.com ]


Quoting Barry L Beattie <[EMAIL PROTECTED]>:

> hi guys

> thanx
> barry.b
> �
> 
> -- 
> __________________________________________________________
> 
> Sign-up for Ads Free at Mail.com
> 
> http://www.mail.com/?sr=signup
> 
> 
> ---
> You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
> To unsubscribe send a blank email to [EMAIL PROTECTED]
> 
> MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia
> http://www.mxdu.com/ + 24-25 February, 2004
> 
> 
> 

---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia
http://www.mxdu.com/ + 24-25 February, 2004

Reply via email to