I was talking to a fellow developer about Reactor today and he asked if a gateway had the ability to return not only a query, but possibly an array of instantiated objects. My knee jerk reaction was that this is normally not done and gateways normally return query recordsets, but I couldn't answer the "why not?". Is it a bad idea for there to be some type of getIterator() in the gateway that accepted a query recordset along the lines of:
<cfset ThingGateway = Reactor.createGateway("Thing") />
<cfset ThingIterator = ThingGateway.getIterator(ThingGateway.getAll()) />
I haven't really worked through this thoroughly and I am fairly certain that there must be a reason this isn't done, but could someone explain it?
If there isn't a reason this shouldn't be done, is this something that could be considered?
Thanks!
--
~Dave Shuck
[EMAIL PROTECTED]
www.daveshuck.com
www.worldwildweb.biz
-- Reactor for ColdFusion Mailing List -- [email protected]
-- Archives at http://www.mail-archive.com/reactor%40doughughes.net/
- [Reactor For CF] is the idea of an iterator in a gateway f... Dave Shuck
- RE: [Reactor For CF] is the idea of an iterator in a ... Doug Hughes
- Re: [Reactor For CF] is the idea of an iterator i... Dave Shuck
- RE: [Reactor For CF] is the idea of an iterator i... Shannon Jackson

